/* --- 1. RESET & TEMEL AYARLAR --- */
:root {
    --primary: #1a73e8; /* Google Mavisi */
    --secondary: #202124; /* Koyu Gri (Metin) */
    --light-bg: #f8f9fa; /* Arka Plan */
    --white: #ffffff;
    --border: #dadce0;
    --text-meta: #5f6368;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Performans i癟in */
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v24-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    background-color: var(--light-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 2. HEADER (BOŞLUK VE HİZALAMA FIX) --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0 !important; /* Beyaz alanı tamamen daralttık */
    flex-wrap: wrap; 
}
.logo img {
    max-height: 40px; /* Logoyu bir tık daha daralttık */
    width: auto;
}
.main-nav {
    flex-grow: 1; /* Menünün alanı kaplamasını sağla */
}
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px; /* Masaüstünde boşluğu daralttık */
    justify-content: flex-end;
}

.main-nav a {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
    display: inline-block;
    padding: 12px 8px; /* Yatay paddingi bir tık kıstık (10'dan 8'e) */
    min-width: 44px;
    white-space: nowrap; /* Yazıların kırılmasını engeller */
}

/* MOBİL ÖZEL AYAR (SARKMAYI ÖNLEYEN KISIM) */
@media (max-width: 768px) {
    .site-header {
        height: auto !important; /* Sabit yükseklik varsa iptal et */
    }

    .header-inner {
        flex-direction: column !important; 
        justify-content: center !important;
        padding: 0 !important; /* Üst ve alt beyazlığı sıfırla */
        min-height: auto !important;
        gap: 0 !important; /* Logo ve menü arasındaki hayalet boşluğu sil */
    }

    .logo {
        padding: 5px 0 0 0 !important; /* Logonun sadece üstüne çok az pay bırak */
    }

    .logo img {
        max-height: 35px !important; /* Logoyu küçük tut ki yer kaplamasın */
    }

    .main-nav {
        width: 100%;
        margin-top: -5px !important; /* Menüyü logoya iyice yaklaştır */
    }

    .main-nav ul {
        display: flex !important;
        justify-content: center !important; 
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

    .main-nav a {
        font-size: 11px !important;
        padding: 12px 8px !important; /* Dokunma alanını koru ama kompakt tut */
        line-height: 1 !important;
    }
}

/* --- 3. NEWS GRID (MOBİL UYUMLU) --- */
.news-grid {
    display: grid;
    /* Masaüstünde sığdır, mobilde sıkıştırma */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px;
    margin: 40px 0;
}

/* Mobilde Tek Sütun Garantisi */
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 10px 0 !important; /* Mobilde boşluğu iyice daralttık */
    }
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-3px);
}
.card-img-wrap {
    position: relative;
    padding-top: 56.25%; /* 16:9 Oranı */
    background: #eee; /* Resim yüklenirken gri zemin */
}
.card-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.card-snippet {
    font-size: 14px;
    color: var(--text-meta);
    margin-bottom: 15px;
    flex-grow: 1;
}
.card-meta {
    font-size: 12px;
    color: #000; /* Kontrast düzeltmesi */
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* --- 4. MAKALE DETAY --- */
.article-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 30px;
    box-shadow: var(--shadow);
}
.article-header h1 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-meta);
}
.content-body {
    font-size: 18px;
    line-height: 1.8;
}
.content-body h2 { font-size: 24px; margin-top: 30px; }
.content-body p { margin-bottom: 20px; }

/* YAZAR KUTUSU */
.author-box {
    background: #f1f3f4;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.author-img {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h3 { margin: 0 0 5px; font-weight: 700; }
.author-info p { margin: 0; font-size: 14px; color: var(--text-meta); }

/* --- 5. PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}
.page-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- 6. COOKIE BANNER (KESİN MOBİL ORTALAMA) --- */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    /* Ekranın tam ortasına sabitleme */
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* Genişlik Ayarı */
    width: 90% !important; 
    max-width: 450px !important;
    
    background: #202124;
    color: #fff;
    padding: 20px !important;
    border-radius: 12px;
    display: none; /* JS ile açılır */
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

#cookie-banner p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: center !important;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cookie-actions button {
    flex: 1;
    padding: 12px 0 !important;
    font-size: 13px !important;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-accept { background: #1a73e8; color: #fff; }
.btn-reject { background: #5f6368; color: #fff; }

/* --- 7. FOOTER --- */
.site-footer {
    background: var(--secondary);
    color: #aaa;
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* --- PREMIUM YAZAR SAYFASI TASARIMI --- */
.editor-page-wrapper {
    background: #fdfdfd;
    padding-bottom: 80px;
}

.editor-hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    padding: 80px 0 120px; /* Alttan boşluk bıraktık, içerik yukarı kayacak */
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
}

.editor-profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.editor-profile-img:hover {
    transform: scale(1.05);
    border-color: #fff;
}

.editor-title-large {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0;
    letter-spacing: -1px;
}

.editor-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* İçerik Kutusu - Hero'nun üstüne biner */
.editor-content-container {
    max-width: 900px;
    margin: -80px auto 0; /* Yukarı çekme efekti */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    padding: 60px;
    position: relative;
    z-index: 10;
}

.editor-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #333;
    font-family: 'Merriweather', 'Georgia', serif; /* Okuma odaklı font */
}

.editor-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a73e8;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #1a73e8;
    padding-left: 15px;
}

.editor-text p {
    margin-bottom: 25px;
}

.highlight-box {
    background: #f1f8ff;
    border-left: 5px solid #1a73e8;
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #0d47a1;
}

/* SERTİFİKA KARTI */
.certificate-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.certificate-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, #1a73e8, #34a853, #fbbc04, #ea4335); /* Google Renkleri */
}

.cert-badge {
    background: #202124;
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cert-image {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cert-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .editor-content-container {
        padding: 30px;
        margin-top: -40px;
        width: 90%;
    }
    .editor-title-large { font-size: 2rem; }
    .editor-profile-img { width: 160px; height: 160px; }
}

.breadcrumb li:last-child {
    max-width: 300px; /* Mobil için uygun bir genişlik */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}