/* ============================================================
   tfblog — koyu editoryal tema
   ============================================================ */

:root {
    --bg: #0b0b0d;
    --bg-soft: #101014;
    --surface: #14141a;
    --surface-2: #191920;
    --line: #272730;
    --line-soft: #1f1f26;
    --text: #f3f0ea;
    --text-soft: #cdc8bf;
    --muted: #8d8d99;
    --accent: #f0b34a;
    --accent-soft: rgba(240, 179, 74, 0.12);
    --danger: #e2604a;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1120px;
    --radius: 14px;
    --radius-sm: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 15% -10%, rgba(240, 179, 74, 0.07), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

p {
    margin: 0 0 1.15em;
}

::selection {
    background: var(--accent);
    color: #16130b;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #16130b;
    padding: 0.6rem 1rem;
    z-index: 100;
    font-family: var(--sans);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ---------- yerleşim ---------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

main {
    min-height: 60vh;
    padding-bottom: 5rem;
    overflow-x: hidden;
}

.section {
    padding: 2.75rem 0 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-soft);
}

.section-title {
    font-size: 1.35rem;
    margin: 0;
}

.eyebrow,
.kicker {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
    font-weight: 600;
}

/* ---------- üst bar ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 11, 13, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 68px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: baseline;
}

.brand:hover {
    color: var(--text);
}

.brand-dot {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-label {
    display: none;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.nav-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.nav-toggle-bars span {
    display: block;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.nav-panel a {
    color: var(--text-soft);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.nav-panel a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.rss-link {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted) !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px;
    padding: 0.3rem 0.7rem !important;
}

.rss-link:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* ---------- hero ---------- */

.hero {
    padding: 4rem 0 2.5rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    max-width: 24ch;
    margin-bottom: 1.1rem;
}

.hero-lead {
    max-width: 58ch;
    color: var(--text-soft);
    font-size: 1.1rem;
    margin: 0;
}

/* ---------- öne çıkan ---------- */

.feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.feature:hover {
    border-color: rgba(240, 179, 74, 0.45);
    color: inherit;
}

.feature-media {
    position: relative;
    min-height: 320px;
    background: var(--surface-2);
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.feature-body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    margin-bottom: 0.7rem;
}

.feature-body p {
    color: var(--text-soft);
    margin-bottom: 1.4rem;
}

/* ---------- kartlar ---------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    align-items: start;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ana sayfa: Masonry (CSS multi-column) — kapaklı/kapaksız kartlar dengeli akar. */
.post-grid.is-masonry {
    display: block;
    columns: 3;
    column-gap: 1.25rem;
}
.post-grid.is-masonry > li {
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 1.25rem;
    width: 100%;
}
.post-grid.is-masonry .card {
    height: auto;
}
@media (max-width: 1000px) {
    .post-grid.is-masonry { columns: 2; }
}
@media (max-width: 640px) {
    .post-grid.is-masonry { columns: 1; }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: rgba(240, 179, 74, 0.45);
    transform: translateY(-2px);
    color: inherit;
}

.card-media {
    aspect-ratio: 3 / 2;
    background: var(--surface-2);
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Kart özeti: en fazla 3 satır, satır yükseklikleri eşitlensin */
.card-body > p:not(.meta) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.55em * 3);
}

/* ---------- rozet / meta ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(240, 179, 74, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
}

.badge-spoiler {
    color: var(--danger);
    background: rgba(226, 96, 74, 0.1);
    border-color: rgba(226, 96, 74, 0.35);
}

.meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.meta .dot::before {
    content: "·";
    color: var(--line);
}

.meta a {
    color: var(--text-soft);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.meta a:hover {
    color: var(--accent);
}

/* ---------- etiketler ---------- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.chip:hover {
    color: var(--accent);
    border-color: rgba(240, 179, 74, 0.45);
}

.chip-count {
    color: var(--muted);
    font-size: 0.72rem;
}

/* ---------- yazı ---------- */

.article-header {
    padding: 2rem 0 0;
    max-width: 820px;
}

.article-header h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin: 0.8rem 0 0.9rem;
}

.article-deck {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text-soft);
    margin: 0 0 1.5rem;
    max-width: 62ch;
}

.article-meta {
    padding: 1rem 0 1.6rem;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

.article-cover {
    margin: 1.75rem 0 0;
}

.article-cover img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.article-cover figcaption {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.6rem;
}

.article-footer {
    max-width: 68ch;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}

/* ---------- yazar kutusu ---------- */

.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 68ch;
    margin-top: 2rem;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.author-box img,
.author-box .avatar-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 auto;
    border: 1px solid var(--line);
}

.author-box h2 {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.author-box p {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.author-box .author-link {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid rgba(240, 179, 74, 0.35);
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.5rem;
}

.avatar-initials--lg {
    width: 108px;
    height: 108px;
    font-size: 2.75rem;
}

/* ---------- kırıntı ---------- */

.breadcrumb {
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-family: var(--sans);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.breadcrumb span {
    color: var(--line);
    margin-right: 0.45rem;
}

.breadcrumb strong {
    color: var(--text-soft);
    font-weight: 500;
}

/* ---------- sayfa başlığı ---------- */

.page-header {
    padding: 3rem 0 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0.5rem 0 0.6rem;
}

.page-header p {
    color: var(--text-soft);
    max-width: 60ch;
    margin: 0;
}

.author-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-bio {
    max-width: 68ch;
    margin-bottom: 2rem;
}

/* ---------- sayfalama ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-family: var(--sans);
    font-size: 0.85rem;
}

.pagination a {
    min-width: 2.4rem;
    text-align: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
}

.pagination a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #16130b;
    font-weight: 600;
}

/* ---------- hakkında şeridi ---------- */

.about-strip {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem;
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.about-strip h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.about-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.about-strip .about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    color: var(--text-soft);
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #16130b;
    font-weight: 600;
}

.button-primary:hover {
    background: #ffc760;
    border-color: #ffc760;
    color: #16130b;
}

/* ---------- alt bilgi ---------- */

.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 2.5rem 0 3rem;
    background: var(--bg-soft);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
}

.footer-brand span {
    color: var(--accent);
}

.footer-note {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 46ch;
}

.footer-meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: #6d6d78;
    margin: 0;
    max-width: 52ch;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-family: var(--sans);
    font-size: 0.82rem;
}

.footer-links a {
    color: var(--text-soft);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ---------- 404 ---------- */

.notfound {
    text-align: center;
    padding: 6rem 1rem;
}

.notfound .kicker {
    margin-bottom: 0.5rem;
}

.notfound .entry-title {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 0.6rem 0 1rem;
}

.notfound .button {
    margin: 0 0.25rem;
}

/* ---------- taslak önizleme bandı ---------- */

.preview-banner {
    font-family: var(--sans);
    font-size: 0.82rem;
    background: var(--accent-soft);
    border-bottom: 1px solid rgba(240, 179, 74, 0.3);
    color: var(--text-soft);
    padding: 0.6rem 1.25rem;
    text-align: center;
}

/* ---------- duyarlı ---------- */

@media (max-width: 860px) {
    .feature {
        grid-template-columns: 1fr;
    }

    .feature-media {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .about-strip {
        grid-template-columns: 1fr;
    }

    .about-strip .about-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

    .nav-toggle-label {
        display: inline-flex;
    }

    .nav-panel {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1.1rem 1.25rem 1.4rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    }

    .nav-toggle:checked ~ .nav-panel {
        display: flex;
    }

    .nav-panel a {
        font-size: 0.95rem;
    }

    .hero {
        padding: 2.5rem 0 1.75rem;
    }

    .author-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- TMDB afişleri (dikey kapak) ---------- */

.card-media.is-poster {
    aspect-ratio: 2 / 3;
}

.feature-media.is-poster {
    min-height: 420px;
}

.feature-media.is-poster img {
    object-position: center 22%;
}

.article-cover.is-poster {
    text-align: center;
}

.article-cover.is-poster img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 680px;
    margin: 0 auto;
}

.footer-credit {
    border-top: 1px solid var(--line-soft);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.footer-credit p {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* Öne çıkan kart: iç içe bağlantı olmadığı için başlık bağlantısı */
.feature-body h2 a {
    color: inherit;
    text-decoration: none;
}

.feature-body h2 a:hover {
    color: var(--accent);
}
