/* ============================================================
   Panacea Akademi - "Clean Minimal SaaS" Tasarım Sistemi
   ============================================================ */

/* ---------- Temel ---------- */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #6C607A;
    color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
.dark ::-webkit-scrollbar-thumb { background: #334155; }
::-webkit-scrollbar-thumb:hover { background: #6C607A; }

/* ---------- Bölüm başlıklarını sabit menü kapatmasın ---------- */
[id] { scroll-margin-top: 128px; }

/* ---------- Klavye erişilebilirliği ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #6C607A;
    outline-offset: 3px;
    border-radius: 6px;
}
.dark a:focus-visible,
.dark button:focus-visible,
.dark input:focus-visible,
.dark textarea:focus-visible,
.dark select:focus-visible {
    outline-color: #A79FB0;
}

/* ---------- Üst bilgi çubuğu ---------- */
.topbar {
    letter-spacing: 0.08em;
}

/* ---------- Cam efektli sabit üst menü ---------- */
.glass-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.dark .glass-header {
    background: rgba(9, 11, 20, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Kartlar ---------- */
.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.18);
    border-color: rgba(108, 96, 122, 0.35);
}

/* ---------- Butonlar ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #6C607A;
    color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px -8px rgba(108, 96, 122, 0.55);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #45374B;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgba(69, 55, 75, 0.6);
    color: #fff;
}

.btn-outline {
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: #6C607A;
    color: #6C607A;
    background: rgba(108, 96, 122, 0.05);
}
.dark .btn-outline:hover { color: #A79FB0; border-color: #A79FB0; }

/* ---------- Animasyonlar ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}
.animate-fade-down { animation: fade-down 0.7s ease both; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ---------- Soft arka plan dokusu ---------- */
.bg-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
}
.dark .bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hero-glow {
    background:
        radial-gradient(800px 480px at 85% 0%, rgba(108, 96, 122, 0.10), transparent 65%),
        radial-gradient(600px 420px at 0% 100%, rgba(87, 98, 94, 0.07), transparent 65%);
}

/* ---------- Kategori rozetleri ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ============================================================
   Yazı (post) içerik tipografisi
   ============================================================ */
.post-content {
    line-height: 1.85;
    font-size: 1.05rem;
}
.post-content p {
    margin-bottom: 1.5rem;
    color: #475569;
    font-weight: 400;
}
.dark .post-content p { color: #A8B0BF; }

.post-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #0F172A;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}
.dark .post-content h2 { color: #F1F5F9; }

.post-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #0F172A;
    margin: 2rem 0 0.75rem;
    font-weight: 600;
}
.dark .post-content h3 { color: #F1F5F9; }

.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.25rem;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
    margin-bottom: 0.5rem;
    color: #475569;
}
.dark .post-content li { color: #A8B0BF; }

.post-content blockquote {
    border-left: 3px solid #6C607A;
    padding: 0.25rem 0 0.25rem 1.25rem;
    background: #F1F2EF;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    color: #0F172A;
    margin: 2rem 0;
}
.dark .post-content blockquote { background: rgba(108, 96, 122, 0.12); color: #E7E3EE; }

.post-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.post-content a {
    color: #6C607A;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}
.post-content a:hover { color: #45374B; }
.post-content strong { font-weight: 700; }
