/**
 * Hangi Üyesisin - Ana stil dosyası
 * Türkçe karakter desteği latin-ext ile, modern UI, sticky footer
 */

:root {
        --hu-primary: #e11d48;
        --hu-primary-dark: #be123c;
        --hu-secondary: #0f172a;
        --hu-accent: #f59e0b;
        --hu-bg: #ffffff;
        --hu-bg-soft: #fef2f2;
        --hu-text: #1e293b;
        --hu-text-muted: #64748b;
        --hu-border: #e2e8f0;
        --hu-radius: 14px;
        --hu-radius-sm: 8px;
        --hu-radius-lg: 20px;
        --hu-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
        --hu-shadow-hover: 0 20px 40px -16px rgba(225, 29, 72, 0.35);
        --hu-container: 1180px;
}

/* Türkçe font desteği için */
body {
        font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "tnum" 0;
        text-rendering: optimizeLegibility;
        -webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Sticky footer - sayfa kısa olsa bile footer en altta */
.hu-site {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
}
.hu-main {
        flex: 1 0 auto;
        width: 100%;
}
.hu-footer {
        flex-shrink: 0;
        margin-top: auto;
}

/* Container */
.container {
        max-width: var(--hu-container);
        margin: 0 auto;
        padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
        font-family: "Poppins", "Inter", system-ui, sans-serif;
        font-weight: 800;
        line-height: 1.25;
        color: var(--hu-secondary);
        margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1rem; }
a { color: var(--hu-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hu-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.hu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 0.75rem 1.5rem;
        border-radius: var(--hu-radius-sm);
        font-weight: 700;
        font-size: 0.95rem;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all .2s ease;
        text-decoration: none;
}
.hu-btn-primary {
        background: linear-gradient(135deg, var(--hu-primary), var(--hu-primary-dark));
        color: #fff;
        box-shadow: var(--hu-shadow);
}
.hu-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--hu-shadow-hover);
        color: #fff;
}
.hu-btn-outline {
        background: transparent;
        color: var(--hu-text);
        border-color: var(--hu-border);
}
.hu-btn-outline:hover {
        border-color: var(--hu-secondary);
        background: var(--hu-bg-soft);
}
.hu-btn-large { padding: 1rem 2rem; font-size: 1.05rem; }
.hu-btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ============= HEADER ============= */
.hu-header {
        position: sticky;
        top: 0;
        z-index: 50;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--hu-border);
}
.hu-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding-top: 12px;
        padding-bottom: 12px;
}
.hu-logo-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 800;
        font-family: "Poppins", sans-serif;
        font-size: 1.15rem;
        color: var(--hu-secondary);
}
.hu-logo-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: linear-gradient(135deg, #f97316, #e11d48 50%, #8b5cf6);
        color: #fff;
        font-size: 16px;
}
.hu-logo-text { letter-spacing: -0.02em; }
.hu-logo-accent { color: var(--hu-primary); }

.hu-nav { display: flex; align-items: center; gap: 1rem; }
.hu-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; align-items: center; }
.hu-menu li { margin: 0; }
.hu-menu a {
        display: inline-flex;
        padding: 0.5rem 1rem;
        border-radius: var(--hu-radius-sm);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--hu-text);
        transition: all .2s ease;
        /* Sadece ilk harf büyük olsun - MANIFEST → Manifest, CRUSH → Crush */
        text-transform: capitalize;
}
.hu-menu a:hover { background: var(--hu-bg-soft); color: var(--hu-primary); }
.hu-menu .current-menu-item > a { background: var(--hu-bg-soft); color: var(--hu-primary); }
.hu-menu-toggle { display: none; }

@media (max-width: 768px) {
        .hu-menu-toggle {
                display: inline-flex;
                flex-direction: column;
                gap: 4px;
                background: transparent;
                border: none;
                padding: 8px;
                cursor: pointer;
        }
        .hu-menu-toggle .hu-menu-icon,
        .hu-menu-toggle .hu-menu-icon::before,
        .hu-menu-toggle .hu-menu-icon::after {
                content: "";
                display: block;
                width: 24px;
                height: 2px;
                background: var(--hu-secondary);
                transition: all .25s ease;
        }
        .hu-menu-toggle[aria-expanded="true"] .hu-menu-icon {
                background: transparent;
        }
        .hu-menu-toggle[aria-expanded="true"] .hu-menu-icon::before {
                transform: translateY(6px) rotate(45deg);
        }
        .hu-menu-toggle[aria-expanded="true"] .hu-menu-icon::after {
                transform: translateY(-6px) rotate(-45deg);
        }
        .hu-menu {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                background: #fff;
                border-top: 1px solid var(--hu-border);
                padding: 12px 20px;
                gap: 4px;
                display: none;
        }
        .hu-menu.hu-menu-open { display: flex; }
        .hu-menu a { width: 100%; }
}

/* ============= HERO ============= */
.hu-hero {
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #faf5ff 100%);
        border-bottom: 1px solid var(--hu-border);
        padding: clamp(3rem, 8vw, 6rem) 0;
        text-align: center;
}
/* Mini hero (archive sayfalarında) */
.hu-hero-mini {
        padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.hu-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hu-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0.5;
}
.hu-blob-1 { background: #fdba74; width: 280px; height: 280px; top: -100px; left: -50px; }
.hu-blob-2 { background: #f9a8d4; width: 320px; height: 320px; top: 50px; right: -80px; }
.hu-blob-3 { background: #c4b5fd; width: 240px; height: 240px; bottom: -80px; left: 50%; transform: translateX(-50%); }

.hu-hero-inner { position: relative; z-index: 1; }
.hu-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        border: 1px solid var(--hu-border);
        padding: 0.4rem 1rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: var(--hu-text);
}
.hu-badge-icon { color: #f97316; }
.hu-badge-sep { color: var(--hu-text-muted); margin: 0 0.25rem; }

.hu-hero-title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
        font-weight: 900;
        letter-spacing: -0.03em;
        margin-bottom: 1rem;
}
.hu-hero-gradient {
        background: linear-gradient(135deg, #f97316, #e11d48 50%, #8b5cf6);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
}
.hu-hero-sub {
        max-width: 640px;
        margin: 0 auto 2rem;
        color: var(--hu-text-muted);
        font-size: clamp(1rem, 2vw, 1.15rem);
}
.hu-hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Trust badges (hero altı) */
.hu-hero-trust {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1.5rem;
}
.hu-trust-item {
        font-size: 0.85rem;
        color: var(--hu-text-muted);
        font-weight: 600;
}

/* Popüler aramalar bölümü */
.hu-search-terms-section {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--hu-border);
        background: var(--hu-bg);
}
.hu-search-terms {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
}
.hu-search-terms-label {
        color: var(--hu-text-muted);
        font-weight: 600;
}
.hu-search-terms a {
        display: inline-block;
        padding: 0.25rem 0.7rem;
        background: var(--hu-bg-soft);
        border-radius: 999px;
        color: var(--hu-text);
        font-weight: 500;
        transition: all .2s ease;
        border: 1px solid transparent;
}
.hu-search-terms a:hover {
        background: #fff;
        border-color: var(--hu-primary);
        color: var(--hu-primary);
}

/* ============= SECTIONS ============= */
.hu-tests-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.hu-how-section { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--hu-bg-soft); border-top: 1px solid var(--hu-border); }
.hu-section-head { text-align: center; margin-bottom: 3rem; }
.hu-section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.hu-section-desc { color: var(--hu-text-muted); max-width: 600px; margin: 0.5rem auto 0; }
.hu-text-center { text-align: center; }

/* ============= TEST GRID ============= */
.hu-tests-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
}

/* "Tüm Testleri Gör" link (ana sayfada) */
.hu-tests-more-link {
        text-align: center;
        margin-top: 2.5rem;
}

/* "Daha Fazla Test Yükle" butonu (Testler sayfasında) */
.hu-load-more-wrap {
        text-align: center;
        margin-top: 2.5rem;
        padding-top: 2rem;
}
.hu-load-more-status {
        margin-top: 1rem;
        font-size: 0.9rem;
        color: var(--hu-text-muted);
}
.hu-load-more-info {
        background: var(--hu-bg-soft);
        padding: 0.4rem 0.8rem;
        border-radius: 999px;
        font-weight: 600;
}
.hu-load-more-error {
        color: #dc2626;
}
#hu-load-more-btn .hu-loading-spinner {
        display: inline-block;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: hu-spin 0.8s linear infinite;
        vertical-align: middle;
        margin-right: 0.5rem;
}
@keyframes hu-spin { to { transform: rotate(360deg); } }

.hu-test-card {
        background: #fff;
        border-radius: var(--hu-radius);
        overflow: hidden;
        box-shadow: var(--hu-shadow);
        transition: all .3s ease;
        border: 1px solid var(--hu-border);
}
.hu-test-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--hu-shadow-hover);
}
.hu-card-link { display: block; color: inherit; }
.hu-card-link:hover { color: inherit; }

.hu-card-cover {
        position: relative;
        aspect-ratio: 16 / 9;
        color: #fff;
        overflow: hidden;
}
.hu-card-cover-overlay {
        position: absolute;
        inset: 0;
        opacity: 0.4;
        pointer-events: none;
}
.hu-card-blob {
        position: absolute;
        border-radius: 50%;
        background: #fff;
        filter: blur(40px);
        opacity: 0.25;
}
.hu-card-blob-1 { width: 120px; height: 120px; top: -30px; right: -30px; }
.hu-card-blob-2 { width: 140px; height: 140px; bottom: -50px; left: -40px; opacity: 0.15; background: #000; }
.hu-card-cover-content {
        position: relative;
        z-index: 1;
        padding: 1.25rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
}
.hu-card-cover-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
}
.hu-card-chip {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #fff;
}
.hu-card-members {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #fff;
}
.hu-card-group-name { font-size: 1.75rem; font-weight: 900; color: #fff; margin: 0; }
.hu-card-fandom { font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); margin: 0; }

.hu-card-body { padding: 1.25rem; }
.hu-card-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.hu-card-excerpt { color: var(--hu-text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; }
.hu-card-stats { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hu-card-stat {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--hu-text-muted);
        background: var(--hu-bg-soft);
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
}
.hu-card-cta {
        display: inline-block;
        font-weight: 700;
        color: var(--hu-card-color);
        font-size: 0.9rem;
}

/* ============= HOW ============= */
.hu-how-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        max-width: 900px;
        margin: 0 auto;
}
.hu-how-step {
        background: #fff;
        padding: 2rem 1.5rem;
        border-radius: var(--hu-radius);
        box-shadow: var(--hu-shadow);
        text-align: center;
}
.hu-how-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        color: #fff;
        font-weight: 900;
        font-size: 1.25rem;
        margin-bottom: 1rem;
}
.hu-how-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.hu-how-step p { color: var(--hu-text-muted); font-size: 0.9rem; margin: 0; }

/* ============= EMPTY STATE ============= */
.hu-empty {
        text-align: center;
        padding: 4rem 1rem;
        color: var(--hu-text-muted);
}
.hu-empty h2 { margin-bottom: 0.5rem; }

/* ============= 404 ============= */
.hu-404 { text-align: center; padding: 4rem 1rem; }
.hu-404-title {
        font-size: clamp(4rem, 12vw, 8rem);
        background: linear-gradient(135deg, #f97316, #e11d48, #8b5cf6);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 1rem;
        line-height: 1;
}

/* ============= FOOTER ============= */
.hu-footer {
        background: var(--hu-secondary);
        color: #cbd5e1;
        padding: 3rem 0 1.5rem;
        margin-top: auto;
}
.hu-footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
}
@media (max-width: 768px) {
        .hu-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.hu-footer .hu-logo-link { color: #fff; margin-bottom: 1rem; }
.hu-footer .hu-logo-text { color: #fff; }
.hu-footer-desc { color: #94a3b8; font-size: 0.9rem; margin: 1rem 0 0; max-width: 400px; }
.hu-footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.hu-footer-list { list-style: none; padding: 0; margin: 0; }
.hu-footer-list li { margin-bottom: 0.5rem; }
.hu-footer-list a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: #cbd5e1;
        font-size: 0.9rem;
        /* Sadece ilk harf büyük - MANIFEST → Manifest */
        text-transform: capitalize;
}
.hu-footer-list a:hover { color: #fff; }
.hu-footer-dot { width: 8px; height: 8px; border-radius: 50%; }
.hu-footer-text { color: #94a3b8; font-size: 0.85rem; }
.hu-footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        text-align: center;
        color: #94a3b8;
        font-size: 0.85rem;
}
.hu-footer-bottom p { margin: 0 0 0.5rem; }
.hu-footer-disclaimer { font-size: 0.75rem; color: #64748b; }

/* ============= ARCHIVE / SINGLE / PAGE ============= */
.hu-archive, .hu-single, .hu-page { padding: 2rem 0 4rem; }
.hu-archive-head { margin-bottom: 2rem; }
.hu-archive-title { font-size: 2rem; }
.hu-archive-desc { color: var(--hu-text-muted); }

.hu-single-title, .hu-page-title { margin-bottom: 0.5rem; }
.hu-single-meta { color: var(--hu-text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.hu-single-cover { margin-bottom: 2rem; border-radius: var(--hu-radius); overflow: hidden; }
.hu-single-content { line-height: 1.8; }
.hu-page-content { line-height: 1.8; }

.hu-content-item {
        background: #fff;
        padding: 1.5rem;
        border-radius: var(--hu-radius);
        box-shadow: var(--hu-shadow);
        margin-bottom: 1.5rem;
        border: 1px solid var(--hu-border);
}
.hu-content-title { font-size: 1.35rem; margin-bottom: 0.25rem; }
.hu-content-title a { color: var(--hu-secondary); }
.hu-content-title a:hover { color: var(--hu-primary); }
.hu-content-meta { color: var(--hu-text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.hu-content-thumb { display: block; margin-bottom: 1rem; border-radius: var(--hu-radius-sm); overflow: hidden; }
.hu-content-excerpt { color: var(--hu-text-muted); margin-bottom: 1rem; }

/* ============= COMMENTS ============= */
.hu-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hu-border); }
.hu-comments-title { margin-bottom: 1.5rem; }
.hu-comments-list { list-style: none; padding: 0; }
.hu-comments-list .comment { padding: 1rem; border: 1px solid var(--hu-border); border-radius: var(--hu-radius-sm); margin-bottom: 1rem; }

/* ============= SIDEBAR ============= */
.hu-sidebar { margin-top: 2rem; }
.widget { background: #fff; padding: 1.5rem; border-radius: var(--hu-radius); border: 1px solid var(--hu-border); margin-bottom: 1.5rem; }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; }

/* ============= SEO İÇERİK ============= */
.hu-seo-section {
        padding: clamp(3rem, 6vw, 5rem) 0;
        background: var(--hu-bg);
        border-top: 1px solid var(--hu-border);
}
.hu-seo-content {
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.8;
        color: var(--hu-text);
}
.hu-seo-content h2 {
        font-size: clamp(1.4rem, 3vw, 1.75rem);
        margin: 2rem 0 1rem;
        color: var(--hu-secondary);
}
.hu-seo-content h2:first-child { margin-top: 0; }
.hu-seo-content p {
        margin: 0 0 1rem;
        color: var(--hu-text-muted);
}
.hu-seo-content ul {
        margin: 0 0 1.5rem;
        padding-left: 1.5rem;
}
.hu-seo-content ul li {
        margin-bottom: 0.5rem;
        color: var(--hu-text-muted);
}
.hu-seo-content strong { color: var(--hu-text); }

/* FAQ */
.hu-faq {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
}
.hu-faq-item {
        background: var(--hu-bg-soft);
        border-radius: var(--hu-radius);
        padding: 1.25rem 1.5rem;
        border: 1px solid var(--hu-border);
}
.hu-faq-item h3 {
        font-size: 1.05rem;
        margin: 0 0 0.5rem;
        color: var(--hu-secondary);
}
.hu-faq-item p {
        margin: 0;
        font-size: 0.95rem;
        color: var(--hu-text-muted);
}

/* ============= RESPONSIVE ============= */
@media (max-width: 640px) {
        .hu-tests-grid { grid-template-columns: 1fr; }
        .hu-hero { padding: 3rem 0; }
        .hu-tests-section, .hu-how-section { padding: 3rem 0; }
        .hu-section-head { margin-bottom: 2rem; }
}

/* ============= DARK MODE ============= */
@media (prefers-color-scheme: dark) {
        :root {
                --hu-bg: #0f172a;
                --hu-bg-soft: #1e293b;
                --hu-text: #e2e8f0;
                --hu-text-muted: #94a3b8;
                --hu-secondary: #f8fafc;
                --hu-border: #334155;
        }
        body { background: var(--hu-bg); color: var(--hu-text); }
        .hu-header { background: rgba(15, 23, 42, 0.85); border-bottom-color: var(--hu-border); }
        .hu-logo-text { color: var(--hu-secondary); }
        .hu-hero {
                background: linear-gradient(135deg, #431407 0%, #4c0519 50%, #3b0764 100%);
        }
        .hu-blob-1 { background: #f97316; opacity: 0.3; }
        .hu-blob-2 { background: #ec4899; opacity: 0.3; }
        .hu-blob-3 { background: #8b5cf6; opacity: 0.3; }
        .hu-test-card, .hu-content-item, .widget {
                background: var(--hu-bg-soft);
                border-color: var(--hu-border);
        }
        .hu-card-excerpt { color: var(--hu-text-muted); }
        .hu-menu a { color: var(--hu-text); }
        .hu-menu a:hover { background: var(--hu-bg); color: var(--hu-primary); }
        .hu-card-stat { background: var(--hu-bg); }
        .hu-how-step { background: var(--hu-bg-soft); }
        .hu-btn-outline { color: var(--hu-text); border-color: var(--hu-border); }
        .hu-btn-outline:hover { background: var(--hu-bg); }
        .hu-footer { background: #020617; }
        @media (max-width: 768px) {
                .hu-menu { background: var(--hu-bg-soft); }
        }
}

/* ============= PRINT ============= */
@media print {
        .hu-header, .hu-footer, .hu-hero-cta, .hu-test-bottombar { display: none !important; }
}
