:root {
    --bg: #F3EFE6;
    --surface: #FBF9F4;
    --ink: #1C1A17;
    --ink-muted: #6B665C;
    --line: #1C1A17;
    --line-soft: #D9D3C5;
    --accent: #E5482B;
    --accent-soft: #F6DDD3;
    --highlight: #F2C94C;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --offset: 4px 4px 0 var(--ink);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
}

button {
    font-family: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Kayan şerit */
.ticker-bar {
    background: var(--ink);
    color: var(--bg);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 22px;
    animation: tickerMove 40s linear infinite;
}

.ticker-track span:nth-child(even) {
    color: var(--accent);
}

@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Üst menü */
.navbar {
    background: var(--bg);
    border-bottom: 1.5px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 60px;
    padding: 6px 0;
}

.brand-group {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
}

.logo-badge {
    background: var(--ink);
    color: var(--bg);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent);
}

.creator-credit {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-random {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-random:hover {
    background: var(--ink);
    color: var(--bg);
}

/* Giriş bölümü */
.hero-editorial {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    margin-top: 28px;
}

.hero-main-card {
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
}

.tag-hot {
    background: var(--accent);
    color: #fff;
}

.tag-cat {
    border: 1px solid rgba(243, 239, 230, 0.4);
    color: var(--bg);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-desc {
    font-size: 1rem;
    color: #CFC9BB;
    max-width: 56ch;
}

.hero-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.stat-pill {
    font-size: 0.84rem;
    color: #CFC9BB;
}

/* Çok çözülenler */
.trending-box {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.trending-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
}

.live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--line-soft);
    cursor: pointer;
    transition: background 0.15s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background: var(--accent-soft);
}

.trend-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.trend-info strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.3;
}

.trend-info span {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* Butonlar */
.btn-primary {
    background: var(--ink);
    color: var(--bg);
    border: 1.5px solid var(--ink);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--offset);
}

.btn-primary:active {
    transform: none;
    box-shadow: none;
}

.hero-main-card .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.hero-main-card .btn-primary:hover {
    box-shadow: 4px 4px 0 var(--bg);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: var(--ink);
    color: var(--bg);
    border: 1.5px solid var(--ink);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--surface);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 10px;
    cursor: pointer;
}

/* Arama ve kategoriler */
.filter-section {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-wrap input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-wrap input::placeholder {
    color: var(--ink-muted);
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    white-space: nowrap;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.87rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pill:hover {
    background: var(--surface);
}

.pill.active {
    background: var(--ink);
    color: var(--bg);
}

/* Test kartları */
.tests-section {
    margin-top: 30px;
    margin-bottom: 56px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.count-badge {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.test-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.test-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--offset);
}

.card-banner {
    padding: 18px 20px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid var(--line);
}

.card-emoji {
    font-size: 2.2rem;
    line-height: 1;
}

.card-cat-tag {
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.card-body {
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--ink-muted);
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.card-cta {
    color: var(--accent);
    font-weight: 700;
}

/* Soru ekranı */
.quiz-wrapper {
    max-width: 660px;
    margin: 30px auto 60px;
}

.quiz-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.btn-back {
    background: transparent;
    border: none;
    padding: 6px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

.btn-back:hover {
    color: var(--accent);
}

.quiz-cat-label {
    border: 1.5px solid var(--line);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.progress-container {
    margin-bottom: 22px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 7px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--line-soft);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.question-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.question-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    width: 100%;
    text-align: left;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.option-btn:hover {
    background: var(--accent-soft);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--ink);
}

.option-btn:active {
    transform: none;
    box-shadow: none;
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Yükleme ekranı */
.loading-box {
    max-width: 440px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.loading-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.loading-box p {
    color: var(--ink-muted);
    font-size: 0.94rem;
}

.spinner-brutal {
    width: 38px;
    height: 38px;
    margin: 0 auto 22px;
    border: 3px solid var(--line-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sonuç kartı */
.result-wrapper {
    max-width: 440px;
    margin: 30px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.story-card {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.story-card-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.story-brand {
    background: var(--ink);
    color: var(--bg);
    padding: 3px 9px;
    border-radius: var(--radius-sm);
}

.story-emoji-box {
    width: 84px;
    height: 84px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.9rem;
    margin-top: 6px;
}

.story-rarity {
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3px 12px;
    border-radius: 999px;
}

.story-result-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.story-result-desc {
    font-size: 0.94rem;
    color: var(--ink);
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: left;
}

.story-stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.s-stat {
    background: rgba(28, 26, 23, 0.18);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.s-label {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
}

.s-stat strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.story-card-footer {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-row {
    display: flex;
    gap: 10px;
}

/* Bildirim */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 999;
}

/* Alt bilgi */
.site-footer {
    border-top: 1.5px solid var(--line);
    padding: 26px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
}

.footer-note {
    color: var(--ink-muted);
    font-size: 0.8rem;
}

/* Tablet ve mobil */
@media (max-width: 960px) {
    .hero-editorial {
        grid-template-columns: 1fr;
    }

    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-inner {
        min-height: 56px;
    }

    .brand-group {
        gap: 6px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .creator-credit {
        font-size: 0.66rem;
    }

    .btn-random {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero-main-card {
        padding: 22px 18px;
    }

    .hero-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .stat-pill {
        text-align: center;
    }

    .tests-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .question-card {
        padding: 20px 16px;
    }

    .option-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .action-row {
        flex-direction: column;
    }

    .story-card {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track,
    .spinner-brutal {
        animation: none;
    }

    * {
        transition: none !important;
    }
}