/* ================================================================
   OSMANLI TARİHİ — MAIN CSS
   Flat, professional dark theme — no gradients, no heavy shadows
   ================================================================ */

/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    --text-primary: #e8e6e3;
    --text-secondary: #9b9a97;
    --text-muted: #6b6a68;
    --gold: #c9a84c;
    --gold-light: #d4b96a;
    --gold-dark: #a68a3a;
    --border-color: rgba(201, 168, 76, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);

    --font-display: 'Playfair Display', 'Amiri', serif;
    --font-body: 'Noto Sans', -apple-system, sans-serif;

    --container-width: 1280px;
    --header-height: 64px;
    --radius: 10px;
    --radius-sm: 6px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    height: var(--header-height);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border-color);
}

/* İç sayfalarda navbar her zaman solid */
.page-era .site-header,
.page-category .site-header,
.page-entry .site-header,
.page-search .site-header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border-color);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 8px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.logo-icon { font-size: 24px; color: var(--gold-light); }
.logo-icon-img { width: 28px; height: 28px; object-fit: contain; }
.logo-primary { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--gold-light); }
.logo-secondary { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: rgba(255,255,255,0.7); }

.site-header.scrolled .header-logo { text-shadow: none; }
.site-header.scrolled .logo-icon { color: var(--gold); }
.site-header.scrolled .logo-primary { color: var(--gold); }
.site-header.scrolled .logo-secondary { color: var(--text-secondary); }

.header-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.nav-link:hover { color: #fff; }

.nav-link.active {
    color: var(--gold-light);
}

/* Scroll sonrası — navbar solid olunca gölge gereksiz */
.site-header.scrolled .nav-link { text-shadow: none; color: var(--text-secondary); }
.site-header.scrolled .nav-link:hover { color: var(--text-primary); }
.site-header.scrolled .nav-link.active { color: var(--gold); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--era-color, var(--gold));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s ease, background 0.2s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.header-search-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.site-header.scrolled .header-search-btn { color: var(--text-secondary); text-shadow: none; }
.site-header.scrolled .header-search-btn:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

.header-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 22px;
    cursor: pointer;
}

/* ==================== HERO SECTION (HOME) ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/conquest_bg.webp') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10,10,15,0.5) 0%,
            rgba(10,10,15,0.3) 30%,
            rgba(10,10,15,0.6) 65%,
            rgba(10,10,15,0.92) 85%,
            var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--header-height);
    text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.4);
}

.hero-emblem {
    width: 110px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(201,168,76,0.5));
    opacity: 0.9;
}

/* Otağ Kartları — hero'nun alt kısmında, resmin içinde */
.hero-eras {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 0 40px;
}

.hero-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: #d4cfc5;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-scroll-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==================== SECTION HEADERS ==================== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text-secondary); }

/* ==================== ERAS GRID (OTAĞ KARTLARI) ==================== */
.eras-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.era-card {
    position: relative;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.era-card:hover {
    transform: translateY(-10px);
}

/* Otağ tepesi — üçgen çadır ucu */
.era-card-peak {
    width: 100%;
    height: 32px;
    position: relative;
    z-index: 2;
}

.era-card-peak::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: color-mix(in srgb, var(--era-color) 25%, rgba(26,26,37,0.9));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Otağ tepesindeki ışık noktası */
.era-card-peak::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--era-color);
    box-shadow: 0 0 12px var(--era-color), 0 0 24px color-mix(in srgb, var(--era-color) 40%, transparent);
    z-index: 3;
}

/* Otağ gövdesi */
.era-card-body {
    flex: 1;
    background: color-mix(in srgb, var(--era-color) 8%, rgba(26,26,37,0.92));
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--era-color) 20%, transparent);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px 18px 24px;
    text-align: center;
    transition: all 0.4s ease;
}

.era-card:hover .era-card-body {
    border-color: var(--era-color);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 24px color-mix(in srgb, var(--era-color) 18%, transparent);
    background: color-mix(in srgb, var(--era-color) 12%, rgba(26,26,37,0.95));
}

.era-card-icon {
    font-size: 32px;
    color: var(--era-color);
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.era-card-years {
    font-size: 12px;
    font-weight: 600;
    color: var(--era-color);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.era-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.era-card-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.era-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--era-color) 12%, transparent);
}

.era-card-arrow { color: var(--era-color); transition: transform 0.3s ease; }
.era-card:hover .era-card-arrow { transform: translateX(4px); }

/* ==================== FEATURED SECTION (HOME — DOKUNMA) ==================== */
.featured-section { padding: 80px 0; background: var(--bg-secondary); }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.featured-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s ease;
    text-decoration: none;
}

.featured-card:hover { border-color: var(--cat-color); transform: translateY(-4px); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }

.featured-card-badge { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--cat-color) 15%, transparent); color: var(--cat-color); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.featured-card-title { font-family: var(--font-display); font-size: 18px; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; }
.featured-card-years { font-size: 13px; color: var(--gold); display: block; margin-bottom: 8px; }
.featured-card-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.featured-card-era { font-size: 12px; color: var(--text-muted); }

/* ================================================================
   İÇ SAYFALAR — Osmanlı Ağırlığı
   ================================================================ */

/* ==================== PAGE TOP (tüm iç sayfalar) ==================== */
.page-top {
    padding: calc(var(--header-height) + 24px) 0 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
/* Reklam engelleyici — header ve page-top alanlarında AdSense otomatik reklam göstermesin */
.page-top ins.adsbygoogle,
.site-header ins.adsbygoogle,
[data-ad-layout="none"] ins.adsbygoogle { display: none !important; }

.page-header-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-top: 10px;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.page-header-sub {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== ERA NAV BAR ==================== */
.era-nav-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
}

.era-nav-scroll { display: flex; gap: 4px; padding: 8px 0; overflow-x: auto; }

.era-nav-item {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.era-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.era-nav-item.active { background: var(--era-color); color: #fff; }

.era-nav-years { font-size: 10px; color: var(--text-muted); margin-left: 4px; }
.era-nav-item.active .era-nav-years { color: rgba(255,255,255,0.7); }

/* ==================== SECTION HEADERS (İç sayfalar) ==================== */
.section-header-left { margin-bottom: 40px; }
.section-tag { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 8px; }
.section-title-lg { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--text-primary); margin-bottom: 8px; }
.section-desc { font-size: 15px; color: var(--text-muted); }

/* ==================== ERA CATEGORIES GRID ==================== */
.era-categories { padding: 40px 0 80px; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--cat-color);
    border-radius: 2px 2px var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.cat-card:hover {
    border-color: var(--cat-color);
    background: var(--bg-card-hover);
}

.cat-card-left {
    padding: 24px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-card-icon { font-size: 32px; color: var(--cat-color); }

.cat-card-right { flex: 1; padding: 0 20px 20px; text-align: center; }

.cat-card-title { font-family: var(--font-display); font-size: 17px; color: var(--text-primary); margin-bottom: 6px; }
.cat-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }

.cat-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.cat-card-count { color: var(--text-muted); }
.cat-card-go { color: var(--cat-color); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* Era Description */
.era-desc-section { padding: 60px 0; }
.era-desc-block {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    border-left: 3px solid var(--era-color);
    padding-left: 24px;
}
.era-desc-block h2 { font-family: var(--font-display); font-size: 24px; color: var(--gold); margin: 32px 0 12px; }
.era-desc-block p { margin-bottom: 16px; }

/* ==================== ENTRY GRID (Kategori listesi) ==================== */
.chronicle-section { padding: 32px 0 80px; }

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.eg-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.eg-card:hover { border-color: var(--cat-color); }

.eg-img {
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.eg-img img { width: 100%; height: 100%; object-fit: cover; }

.eg-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 6%, var(--bg-card));
    font-size: 40px;
    color: color-mix(in srgb, var(--cat-color) 30%, var(--text-muted));
}

.eg-body { padding: 14px 16px 18px; flex: 1; }

.eg-years {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--cat-color);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.eg-title {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.eg-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Diğer Kategoriler */
.other-cats { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.other-cats-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; color: var(--text-secondary); }
.other-cats-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.other-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.other-cat-chip:hover { border-color: var(--cat-color); color: var(--cat-color); }

/* ==================== BREADCRUMB ==================== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text-muted); font-size: 10px; }
.breadcrumb-current { color: var(--text-secondary); }

/* ==================== TIMELINE ==================== */
.timeline-section { padding: 60px 0 80px; }

.timeline { position: relative; padding-left: 40px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item { position: relative; margin-bottom: 24px; }

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cat-color);
    border: 3px solid var(--bg-primary);
    z-index: 2;
}

.timeline-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s ease;
    text-decoration: none;
}

.timeline-card:hover { border-color: var(--cat-color); }

.timeline-card-image { width: 200px; min-height: 160px; flex-shrink: 0; overflow: hidden; }
.timeline-card-image img { width: 100%; height: 100%; object-fit: cover; }
.timeline-card-body { padding: 20px 24px; flex: 1; }
.timeline-card-years { font-size: 13px; color: var(--cat-color); font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.timeline-card-title { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.timeline-card-subtitle { font-size: 14px; color: var(--gold-dark); font-style: italic; margin-bottom: 8px; }
.timeline-card-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.timeline-card-location { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.timeline-card-link { font-size: 13px; color: var(--cat-color); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* Category Nav Grid */
.category-nav-grid { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.category-nav-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; color: var(--text-secondary); }
.category-nav-items { display: flex; flex-wrap: wrap; gap: 8px; }

.category-nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.category-nav-chip:hover {
    border-color: var(--cat-color);
    color: var(--cat-color);
}

/* Empty State */
.empty-state { text-align: center; padding: 80px 0; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text-secondary); }

/* ==================== ENTRY DETAIL PAGE ==================== */
.entry-section { padding: 40px 0 80px; }

.entry-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.entry-header { margin-bottom: 32px; }

.entry-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.entry-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--c);
}

.entry-title { font-family: var(--font-display); font-size: 38px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; color: var(--text-primary); }
.entry-subtitle { font-size: 17px; color: var(--gold-dark); font-style: italic; margin-bottom: 16px; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.entry-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.entry-meta-item i { color: var(--gold); font-size: 14px; }

.entry-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 28px 0;
    border: 1px solid var(--border-subtle);
}

.entry-summary {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
    padding: 24px 28px;
    background: color-mix(in srgb, var(--gold) 4%, var(--bg-card));
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 36px;
    font-style: italic;
    border-top: none;
    border-bottom: none;
    border-right: none;
}

.entry-body { font-size: 16px; line-height: 1.8; color: var(--text-primary); }
.entry-body h2 { font-family: var(--font-display); font-size: 26px; margin: 40px 0 16px; color: var(--gold); }
.entry-body h3 { font-family: var(--font-display); font-size: 22px; margin: 32px 0 12px; }
.entry-body p { margin-bottom: 16px; }
.entry-body ul, .entry-body ol { margin: 16px 0; padding-left: 24px; }
.entry-body li { margin-bottom: 8px; }

.entry-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-secondary);
}

/* Cross-link style */
.entry-body .crosslink {
    color: var(--gold);
    border-bottom: 1px dashed var(--gold-dark);
    transition: color 0.2s ease;
}

.entry-body .crosslink:hover {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}

/* Entry Gallery */
.entry-gallery { margin-top: 40px; }
.entry-section-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-subtle); }
.gallery-item img { width: 100%; display: block; }
.gallery-item figcaption { padding: 8px 12px; font-size: 12px; color: var(--text-muted); background: var(--bg-card); }

.entry-aka { margin-top: 24px; padding: 12px 16px; background: var(--bg-card); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-secondary); }
.entry-aka strong { color: var(--gold); }

/* İlişkili içerikler — main altında multi-column */
.entry-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.related-col-title {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.related-col-list { list-style: none; }
.related-col-list li { margin-bottom: 1px; }

.related-col-list a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.related-col-list a:hover { color: var(--gold); }

/* ==================== SIDEBAR ==================== */
.entry-sidebar { position: sticky; top: calc(var(--header-height) + 20px); }

.sb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
}

.sb-title {
    font-family: var(--font-display);
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.sb-group { margin-bottom: 10px; }
.sb-group-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    margin-bottom: 4px;
    padding-left: 12px;
}

.sb-list { list-style: none; }
.sb-list li { margin-bottom: 1px; }

.sb-list a {
    display: block;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
    text-decoration: none;
}

.sb-list a:hover { color: var(--gold); }

/* Sidebar Era Kartı */
.sb-era {
    text-align: center;
    border-left: 3px solid var(--era-color);
    border-top: none;
    border-right: none;
    border-bottom: none;
    background: color-mix(in srgb, var(--era-color) 5%, var(--bg-card));
}

.sb-era-icon { font-size: 28px; color: var(--era-color); margin-bottom: 8px; }
.sb-era-name { font-family: var(--font-display); font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.sb-era-years { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 12px; }
.sb-era-link { display: inline-flex; align-items: center; gap: 6px; color: var(--era-color); font-size: 13px; font-weight: 600; }

/* ==================== SUGGESTIONS ==================== */
.suggestions-section { padding: 56px 0; background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.sug-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--cat-color);
    border-radius: 2px var(--radius-sm) var(--radius-sm) 2px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.25s ease;
}

.sug-card:hover { border-color: var(--cat-color); }

.sug-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--cat-color); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.sug-title { font-family: var(--font-display); font-size: 16px; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.sug-years { font-size: 12px; color: var(--text-muted); }

/* ==================== SEARCH PAGE ==================== */
.search-section { padding: 40px 0 80px; }

.search-form { margin-bottom: 32px; }

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 4px 4px 4px 20px;
    max-width: 640px;
}

.search-input-wrapper i { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    padding: 12px 0;
    outline: none;
}

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

.search-btn {
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-btn:hover { opacity: 0.9; }

.search-info { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.search-results { display: flex; flex-direction: column; gap: 12px; }

.search-result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.search-result-card:hover { border-color: var(--cat-color); }

.search-result-badges { display: flex; gap: 8px; margin-bottom: 8px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-era { background: color-mix(in srgb, var(--era-color) 15%, transparent); color: var(--era-color); }
.badge-cat { background: color-mix(in srgb, var(--cat-color) 15%, transparent); color: var(--cat-color); }

.search-result-title { font-family: var(--font-display); font-size: 20px; color: var(--text-primary); margin-bottom: 4px; }
.search-result-years { font-size: 13px; color: var(--gold); display: block; margin-bottom: 6px; }
.search-result-summary { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-disclaimer { font-size: 12px; color: var(--text-muted); margin-top: 4px; opacity: 0.7; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .eras-grid { grid-template-columns: repeat(3, 1fr); }
    .era-card-summary { display: none; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .entry-layout { grid-template-columns: 1fr; }
    .entry-sidebar { position: static; }
    .suggestions-grid { grid-template-columns: repeat(2, 1fr); }
    .entry-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .header-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--bg-secondary);
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .header-mobile-toggle { display: block; }
    .header-actions {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .eras-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-eras { padding: 0 0 24px; }
    .era-card-peak { height: 24px; }
    .era-card-peak::before { height: 24px; }
    .era-card-body { padding: 14px 12px 16px; }
    .era-card-title { font-size: 15px; }
    .era-card-meta { display: none; }

    .era-hero-title { font-size: 30px; }

    .cat-hero-title { font-size: 28px; }
    .entry-grid { grid-template-columns: 1fr; }
    .eg-img { height: 180px; }

    .entry-title { font-size: 28px; }
    .entry-badges { gap: 6px; }
    .suggestions-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }

    .hero-title { font-size: 36px; }
    .page-hero-title { font-size: 28px; }

    .timeline { padding-left: 30px; }
    .timeline::before { left: 10px; }
    .timeline-marker { left: -30px; }
    .timeline-card { flex-direction: column; }
    .timeline-card-image { width: 100%; min-height: 200px; }

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

    .entry-title { font-size: 28px; }

    .search-input-wrapper { max-width: 100%; }
}

/* ==================== GALLERY ==================== */
.gallery-hero { padding: 2rem 0; }
.gallery-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.gallery-cat-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; transition: transform .2s; display: block; }
.gallery-cat-card:hover { transform: translateY(-2px); }
.gallery-cat-card img { width: 100%; height: 160px; object-fit: cover; }
.gallery-cat-info { padding: 1rem; }
.gallery-cat-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.gallery-cat-count { font-size: .85rem; color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: .85rem; transform: translateY(100%); transition: transform .3s; }
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

/* Gallery Detail */
.gallery-detail { max-width: 1000px; margin: 0 auto; padding-bottom: 3rem; }
.gallery-detail-img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--bg-secondary); border-radius: 8px; }
.gallery-detail-desc { font-size: 1.1rem; line-height: 1.8; margin: 2rem 0; color: var(--text-primary); }
.gallery-detail-meta { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.5rem; background: var(--bg-card); border-radius: 8px; margin-bottom: 2rem; }
.gallery-detail-meta-item { font-size: .9rem; }
.gallery-detail-meta-label { font-weight: 600; color: var(--text-muted); display: block; font-size: .8rem; text-transform: uppercase; margin-bottom: .25rem; }
.gallery-nav { display: flex; justify-content: space-between; margin: 2rem 0; }
.gallery-nav a { padding: .75rem 1.5rem; background: var(--bg-card); border-radius: 8px; font-size: .9rem; transition: background .2s; color: var(--text-primary); }
.gallery-nav a:hover { background: var(--gold); color: var(--bg-primary); }
.gallery-related { margin-top: 3rem; }
.gallery-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 768px) {
    .gallery-cats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-related-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-detail-meta { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
    .gallery-cats { grid-template-columns: 1fr; }
}
