/*
Theme Name: Voleybol Sahasi
Theme URI: https://voleybolsahasi.example
Author: Voleybol Sahasi Ekibi
Author URI: https://voleybolsahasi.example
Description: Turk voleyboluna adanmis enerjik bir spor blogu temasi. Sultanlar Ligi, Efeler Ligi, milli takimlar (Filenin Sultanlari ve Efeler), CEV Avrupa kupalari ve transfer haberleri icin bolum-sekmeli anasayfa, pill rozetler ve saha cizgili, lacivert-sari bir tasarim sunar.
Version: 1.0.0
Author: Voleybol Sahasi Ekibi
Text Domain: voleybol-sahasi
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, sports, volleyball, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, right-sidebar
*/

/* =========================================================
   1. Custom Properties (Palette + Tokens)
   ========================================================= */
:root {
    --navy: #12245c;
    --navy-2: #1b3480;
    --navy-3: #24408f;
    --sun: #ffd21f;
    --sun-2: #ffbe0a;
    --bg: #ffffff;
    --ink: #101828;
    --soft: #f4f6fb;

    --ink-2: #33405c;
    --muted: #667191;
    --line: #e3e8f2;
    --silver: #c3ccdf;
    --white: #ffffff;

    /* Bolum renkleri (section accents) */
    --sec-sultanlar: #e5197a;
    --sec-efeler: #2563eb;
    --sec-milli: #e11d2a;
    --sec-avrupa: #0ea5a0;
    --sec-transfer: #f59e0b;

    --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --container: 1200px;
    --radius: 16px;
    --radius-sm: 9px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(18, 36, 92, .06), 0 2px 8px rgba(18, 36, 92, .06);
    --shadow-md: 0 10px 28px rgba(18, 36, 92, .12);
    --shadow-lg: 0 22px 52px rgba(18, 36, 92, .18);

    --gutter: clamp(16px, 4vw, 28px);
    --transition: .22s ease;
}

/* =========================================================
   2. Reset / Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

a { color: var(--navy-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sec-efeler); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; }

blockquote {
    margin: 1.6em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--sun);
    background: var(--soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--ink-2);
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .9em;
}
pre {
    background: var(--ink);
    color: #e2e8f0;
    padding: 1.2em;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}
code { background: var(--soft); padding: .15em .4em; border-radius: 4px; }
pre code { background: none; padding: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* =========================================================
   3. Accessibility helpers
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-family: var(--font-head);
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 2px;
    border-radius: 3px;
}

/* =========================================================
   4. Layout
   ========================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-content {
    padding-block: clamp(28px, 5vw, 52px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
}

@media (min-width: 1000px) {
    .content-grid.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

/* =========================================================
   5. Header
   ========================================================= */
.site-header {
    position: relative;
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.site-header::after {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--sun), #fff 40%, var(--sun) 80%);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 16px;
}

.site-branding { display: flex; align-items: center; gap: 14px; margin-right: auto; }

.custom-logo-link img { max-height: 52px; width: auto; }

.site-title {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.05;
}
.site-title a { color: #fff; }
.site-title a:hover { color: var(--sun); }

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,210,31,.4);
    flex-shrink: 0;
}
.brand-badge svg { width: 28px; height: 28px; }

.site-description {
    font-size: .82rem;
    color: rgba(255,255,255,.78);
    margin: 2px 0 0;
    font-weight: 500;
    letter-spacing: .01em;
}

/* Primary nav */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0; padding: 0;
    align-items: center;
}
.main-navigation a {
    display: block;
    color: #eef2ff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    transition: background var(--transition), color var(--transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--sun);
    color: var(--navy);
}
.main-navigation .sub-menu {
    position: absolute;
    flex-direction: column;
    background: #fff;
    min-width: 200px;
    padding: 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 60;
    gap: 2px;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }
.main-navigation .sub-menu a { color: var(--ink); }
.main-navigation .sub-menu a:hover { background: var(--soft); color: var(--navy-2); }

/* Search in header */
.header-search { flex-shrink: 0; }
.header-search .search-form { display: flex; align-items: center; }
.header-search .search-field {
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 9px 14px;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    font-size: .9rem;
    width: 180px;
    outline: none;
}
.header-search .search-field::placeholder { color: rgba(238,242,255,.7); }
.header-search .search-field:focus { background: rgba(255,255,255,.2); border-color: var(--sun); }
.header-search .search-submit {
    border: 1px solid rgba(255,255,255,.4);
    border-left: 0;
    background: var(--sun);
    color: var(--navy);
    font-weight: 800;
    padding: 9px 16px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer;
    font-family: var(--font-head);
    transition: background var(--transition);
}
.header-search .search-submit:hover { background: var(--sun-2); }

/* Section chip row */
.league-bar {
    background: rgba(4, 10, 34, .34);
    border-top: 1px solid rgba(255,255,255,.10);
}
.league-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-block: 12px;
    scrollbar-width: thin;
}
.league-bar-label {
    font-family: var(--font-head);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--sun);
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 4px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .86rem;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.chip:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-1px); border-color: var(--sun); }
.chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
.chip[data-league="sultanlar"] .chip-dot { background: var(--sec-sultanlar); }
.chip[data-league="efeler"] .chip-dot { background: var(--sec-efeler); }
.chip[data-league="milli"] .chip-dot { background: var(--sec-milli); }
.chip[data-league="avrupa"] .chip-dot { background: var(--sec-avrupa); }
.chip[data-league="transfer"] .chip-dot { background: var(--sec-transfer); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
}
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

/* =========================================================
   6. Hero (featured post)
   ========================================================= */
.hero {
    margin-top: clamp(24px, 4vw, 40px);
}
.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--navy);
    min-height: 340px;
}
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card.has-image .hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,36,92,.15) 0%, rgba(18,36,92,.58) 60%, rgba(10,20,54,.92) 100%);
}
.hero-body {
    position: relative;
    color: #fff;
    padding: clamp(22px, 4vw, 40px);
    z-index: 2;
}
.hero-card.has-image {
    display: block;
}
.hero-card.has-image .hero-media { position: absolute; inset: 0; }
.hero-card.has-image .hero-body {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 720px;
}
.hero-card:not(.has-image) {
    background: linear-gradient(120deg, var(--navy), var(--navy-3));
}
/* Voleybol saha cizgisi (net) motifi */
.hero-card::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; right: 8%;
    width: 2px;
    background: repeating-linear-gradient(180deg, rgba(255,210,31,.55) 0 14px, transparent 14px 26px);
    z-index: 1;
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--sun);
    margin-bottom: 14px;
}
.hero-title {
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.9rem);
    font-weight: 800;
    margin: 0 0 .4em;
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--sun); }
.hero-excerpt {
    color: #e4e9f6;
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 18px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: .85rem;
    color: #cdd6ea;
}

/* =========================================================
   7. Section headings + section accents
   ========================================================= */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: clamp(36px, 5vw, 54px) 0 22px;
    flex-wrap: wrap;
}
.section-head .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
}
.section-title .league-tag {
    width: 6px;
    height: 30px;
    border-radius: 6px;
    background: var(--sun);
    display: inline-block;
}
.section-more {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-more:hover { color: var(--sec-efeler); }

/* Bolum renkli baslik aksanlari */
.league-section[data-league="sultanlar"] .league-tag { background: var(--sec-sultanlar); }
.league-section[data-league="efeler"] .league-tag { background: var(--sec-efeler); }
.league-section[data-league="milli"] .league-tag { background: var(--sec-milli); }
.league-section[data-league="avrupa"] .league-tag { background: var(--sec-avrupa); }
.league-section[data-league="transfer"] .league-tag { background: var(--sec-transfer); }

/* =========================================================
   8. Post cards
   ========================================================= */
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--silver);
}
.post-card .card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--soft);
}
.post-card .card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover .card-media img { transform: scale(1.05); }
.post-card .card-media.no-image {
    display: grid;
    place-items: center;
    background: linear-gradient(120deg, var(--soft), #e7ecf7);
    color: var(--silver);
}
.post-card .card-media.no-image svg { width: 54px; height: 54px; opacity: .85; }

.card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.card-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy-2); }
.card-excerpt {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
    flex: 1;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: 4px;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--silver); }

/* Bolum rozeti (section badge) */
.league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--navy-2);
    line-height: 1;
    align-self: flex-start;
}
.league-badge[data-league="sultanlar"] { background: var(--sec-sultanlar); }
.league-badge[data-league="efeler"] { background: var(--sec-efeler); }
.league-badge[data-league="milli"] { background: var(--sec-milli); }
.league-badge[data-league="avrupa"] { background: var(--sec-avrupa); }
.league-badge[data-league="transfer"] { background: var(--sec-transfer); color: var(--navy); }
.card-media .league-badge { position: absolute; top: 12px; left: 12px; z-index: 3; box-shadow: var(--shadow-sm); }

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Empty state within a section */
.league-empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: var(--soft);
    border-radius: var(--radius);
    border: 1px dashed var(--line);
}

/* =========================================================
   9. Single post
   ========================================================= */
.single-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 26px;
    box-shadow: var(--shadow-md);
    background: var(--navy);
}
.single-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.single-hero .single-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18,36,92,0) 40%, rgba(18,36,92,.75) 100%);
}

.entry-header { margin-bottom: 22px; }
.entry-header .entry-title { margin: 12px 0 14px; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: .9rem;
    font-family: var(--font-body);
}
.entry-meta .author-name { font-weight: 600; color: var(--ink-2); }
.entry-meta a { color: var(--ink-2); }
.entry-meta a:hover { color: var(--navy-2); }
.entry-meta .sep { color: var(--silver); }

.entry-content {
    font-size: 1.08rem;
    line-height: 1.8;
}
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.2em 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.entry-footer {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}
.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0; margin: 0;
}
.tag-links a {
    font-size: .82rem;
    background: var(--soft);
    color: var(--ink-2);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.tag-links a:hover { background: var(--navy-2); color: #fff; }

/* Breadcrumb */
.breadcrumbs {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--navy-2); }
.breadcrumbs .sep { color: var(--silver); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* Author box */
.author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--soft);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 30px;
}
.author-box .avatar { border-radius: 50%; flex-shrink: 0; }
.author-box .author-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* Related posts */
.related-posts { margin-top: 44px; }
.related-posts .section-head { margin-top: 0; }

/* Post navigation */
.post-navigation {
    margin-top: 34px;
    display: grid;
    gap: 14px;
}
@media (min-width: 640px) { .post-navigation { grid-template-columns: 1fr 1fr; } }
.post-navigation .nav-link {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.post-navigation .nav-link:hover { border-color: var(--silver); box-shadow: var(--shadow-sm); }
.post-navigation .nav-subtitle {
    display: block;
    font-family: var(--font-head);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}
.post-navigation .nav-title { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.post-navigation .next .nav-link { text-align: right; }

/* =========================================================
   10. Sidebar / widgets
   ========================================================= */
.site-sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--soft);
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-title::before {
    content: "";
    width: 5px; height: 18px;
    border-radius: 4px;
    background: linear-gradient(var(--navy-2), var(--sun));
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--ink-2); font-weight: 500; }
.widget ul li a:hover { color: var(--navy-2); }
.widget ul ul { margin-left: 14px; margin-top: 6px; }

.widget select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

/* =========================================================
   11. Forms + buttons
   ========================================================= */
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--sun);
    box-shadow: 0 0 0 3px rgba(255,210,31,.3);
}
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }

.btn, button, input[type="submit"], .search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--navy-2);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover, button:hover, input[type="submit"]:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-ghost {
    background: transparent;
    color: var(--navy-2);
    border: 1.5px solid var(--silver);
}
.btn-ghost:hover { background: var(--soft); color: var(--navy); }

.btn-sun {
    background: var(--sun);
    color: var(--navy);
}
.btn-sun:hover { background: var(--sun-2); color: var(--navy); }

/* search form (generic) */
.search-form {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.search-form .search-field {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: 0;
}
.search-form .search-submit {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
}

/* =========================================================
   12. Comments
   ========================================================= */
.comments-area { margin-top: 44px; }
.comments-title, .comment-reply-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list ol { list-style: none; }
.comment-list .children { margin-left: clamp(16px, 4vw, 40px); margin-top: 18px; }
.comment-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-meta .avatar { border-radius: 50%; }
.comment-author .fn { font-family: var(--font-head); font-weight: 700; font-style: normal; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-metadata a { color: var(--muted); }
.reply a {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy-2);
}
.comment-respond { margin-top: 24px; }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form .form-submit { margin-top: 4px; }
.comment-notes, .logged-in-as { font-size: .88rem; color: var(--muted); }
.comment-awaiting-moderation { font-size: .82rem; color: var(--sec-transfer); font-style: italic; }
.bypostauthor > .comment-body { border-left: 3px solid var(--sun); }

/* =========================================================
   13. Pagination
   ========================================================= */
.pagination, .posts-navigation, .nav-links {
    margin-top: 40px;
}
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 0;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-2);
    font-family: var(--font-head);
    font-weight: 600;
    transition: all var(--transition);
}
.pagination .page-numbers:hover { border-color: var(--silver); background: var(--soft); }
.pagination .page-numbers.current {
    background: var(--navy-2);
    border-color: var(--navy-2);
    color: #fff;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* posts-navigation (older/newer) */
.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 0;
}
.posts-navigation a {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--silver);
    color: var(--navy-2);
}
.posts-navigation a:hover { background: var(--soft); }

/* =========================================================
   14. Page + archive headers
   ========================================================= */
.page-hero {
    background: linear-gradient(120deg, var(--navy), var(--navy-3));
    color: #fff;
    padding: clamp(32px, 6vw, 60px) 0;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sun), #fff 50%, var(--sun));
}
/* Saha cizgisi motifi */
.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -6%;
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(255,210,31,.2);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .page-title { color: #fff; margin: 0 0 8px; }
.page-hero .archive-description, .page-hero .page-subtitle {
    color: #e4e9f6;
    max-width: 680px;
    margin: 0;
}
.page-hero .breadcrumbs { color: rgba(228,233,246,.8); margin-bottom: 12px; }
.page-hero .breadcrumbs a { color: rgba(228,233,246,.9); }
.page-hero .breadcrumbs a:hover { color: var(--sun); }
.page-hero .breadcrumbs .sep { color: rgba(255,255,255,.5); }
.page-hero .breadcrumbs [aria-current="page"] { color: #fff; }

.page-content-wrap { padding-block: clamp(28px, 5vw, 52px); }

.entry-page .entry-content { font-size: 1.08rem; }

/* 404 */
.error-404 { text-align: center; padding-block: clamp(40px, 8vw, 90px); }
.error-404 .error-code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--navy-2), var(--sun));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}
.error-404 .search-form { max-width: 460px; margin: 26px auto 0; }
.error-404 .suggest-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

/* No results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: var(--soft);
    border-radius: var(--radius);
}

/* =========================================================
   15. Footer
   ========================================================= */
.site-footer {
    background: linear-gradient(180deg, #0d1c48, var(--navy));
    color: #dbe3f4;
    margin-top: clamp(40px, 6vw, 72px);
}
.site-footer a { color: #dbe3f4; }
.site-footer a:hover { color: var(--sun); }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(24px, 4vw, 44px);
    padding-block: clamp(36px, 5vw, 56px);
}
.footer-widgets .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.16);
}
.footer-widgets .widget-title::before { background: var(--sun); }
.footer-widgets ul li {
    border-bottom-color: rgba(255,255,255,.1);
}
.footer-widgets ul li a { color: #cbd5e1; }
.footer-widgets ul li a:hover { color: var(--sun); }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-badge { background: rgba(255,255,255,.10); }
.footer-brand .name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-about { color: #b9c4dc; font-size: .94rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    padding-block: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: #a9b6d4;
}
.footer-bottom .footer-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-bottom .footer-menu a { font-family: var(--font-head); font-weight: 600; font-size: .85rem; }

/* Sticky footer layout */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; }

/* =========================================================
   16. Utilities
   ========================================================= */
.sticky-badge {
    display: inline-block;
    font-size: .7rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--sun-2);
}
.text-center { text-align: center; }

/* =========================================================
   17. Responsive
   ========================================================= */
@media (max-width: 900px) {
    .header-search .search-field { width: 130px; }
}

@media (max-width: 820px) {
    .menu-toggle { display: inline-flex; }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        z-index: 70;
        background: var(--navy);
        border-top: 1px solid rgba(255,255,255,.12);
        display: none;
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
    .main-navigation a { padding: 12px 16px; border-radius: var(--radius-sm); }
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.06);
        display: flex;
        margin: 4px 0 4px 12px;
    }
    .main-navigation .sub-menu a { color: #eef2ff; }
    .main-navigation .sub-menu a:hover { background: var(--sun); color: var(--navy); }

    .header-top { flex-wrap: wrap; }
    .header-search { order: 3; width: 100%; }
    .header-search .search-form { width: 100%; }
    .header-search .search-field { flex: 1; width: auto; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .card-row { grid-template-columns: 1fr; }
    .site-title { font-size: 1.3rem; }
    .entry-footer { flex-direction: column; align-items: flex-start; }
}
