/*
Theme Name: YerelAnkara
Description: Başkentin Bağımsız Dijital Kent Dergisi - Özel Özgün Tema
Author: YerelAnkara
Version: 6.2
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

* { box-sizing: border-box; }

body {
    background-color: #F5F5F4;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Üst Veri Çubuğu */
.top-bar {
    background-color: #1A233A;
    color: #ffffff;
    font-size: 11px;
    padding: 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #C99E50;
    letter-spacing: 0.05em;
}

/* Header & Logolar */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    color: #1A233A;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.site-title span {
    color: #BA1628;
}

/* Yatay Menü ve Dropdown (Açılır Kutu) Mimarisi */
.nav-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-container li {
    position: relative;
}

.nav-container a {
    color: #1A233A;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
    letter-spacing: 0.08em;
    padding: 10px 0;
    display: block;
    transition: color 0.2s ease;
}

.nav-container a:hover {
    color: #BA1628;
}

/* Alt Kategoriler (Dropdown Kutu) */
.nav-container ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-top: 3px solid #BA1628;
    padding: 8px 0;
    z-index: 200;
    flex-direction: column;
    gap: 0;
}

.nav-container li:hover > ul.sub-menu {
    display: flex;
}

.nav-container ul.sub-menu li {
    width: 100%;
}

.nav-container ul.sub-menu a {
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
    padding: 10px 20px;
    display: block;
    border-bottom: 1px solid #f3f4f6;
}

.nav-container ul.sub-menu li:last-child a {
    border-bottom: none;
}

.nav-container ul.sub-menu a:hover {
    background-color: #F5F5F4;
    color: #BA1628;
    padding-left: 24px;
}

/* Ana İçerik Konteynerleri */
.main-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 32px;
}

/* Dergi Manşet Grid Tasarımı */
.hero-grid {
    display: grid;
    grid-template-columns: 12fr;
    gap: 32px;
    margin-bottom: 48px;
}

@media(min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 8fr 4fr;
    }
}

.main-headline {
    position: relative;
    height: 500px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.main-headline img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.main-headline:hover img {
    transform: scale(1.03);
}

.headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,35,58,0.95) 0%, rgba(26,35,58,0.4) 50%, transparent 100%);
    z-index: 10;
}

.headline-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px;
    z-index: 20;
}

.badge {
    background-color: #BA1628;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 14px;
}

.headline-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.headline-excerpt {
    color: #e5e7eb;
    font-size: 14px;
    border-left: 2px solid #C99E50;
    padding-left: 12px;
}

/* Yan Manşetler ve Görsel Stili */
.side-headlines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.side-card {
    background: #ffffff;
    padding: 16px;
    border-left: 3px solid #BA1628;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-decoration: none;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.2s ease;
}

.side-card:hover {
    transform: translateX(4px);
}

.side-card-thumb {
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.side-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #1A233A;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

/* Bölüm Başlıkları */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1A233A;
    border-bottom: 2px solid #1A233A;
    padding-bottom: 8px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title a {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #BA1628;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* İçerik Düzeni ve Başkent Endeksi */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media(min-width: 1024px) {
    .content-layout {
        grid-template-columns: 9fr 3fr;
    }
}

.category-row {
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.cat-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 768px) {
    .cat-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.post-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #1A233A;
    margin: 6px 0 8px 0;
}

.post-card a {
    text-decoration: none;
}

.post-card h4:hover {
    color: #BA1628;
}

.post-meta {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Başkent Endeksi Widget Paneli */
.baskent-index-box {
    background-color: #1A233A;
    color: #ffffff;
    padding: 24px;
    border-top: 4px solid #C99E50;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.baskent-index-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: #C99E50;
    border-bottom: 1px solid #374151;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 16px;
}

.index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.index-item span:last-child {
    font-weight: 700;
    color: #4ade80;
}

/* Footer */
.site-footer {
    background-color: #1A233A;
    color: #ffffff;
    padding: 48px 32px;
    margin-top: 60px;
    border-top: 4px solid #C99E50;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
}