/*
Theme Name: Digiklan Magazine
Theme URI: http://r10.net
Author: Adınız
Description: Modern hızlı wordpress magazin teması
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: digiklan
*/

/* =========================================
   1. FONT VE DEĞİŞKENLER
   ========================================= */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap; 
    src: local('Poppins Regular'), url('assets/fonts/poppins400.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Poppins Bold'), url('assets/fonts/poppins800.woff2') format('woff2');
}

:root {
    --font-heading: 'Poppins', Helvetica, Arial, sans-serif; 
    --font-main: 'Poppins', Helvetica, Arial, sans-serif;      
    
    /* Temel Renkler */
    --bg-body: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.98);
    --text-main: #1a1a1a;
    --text-sec: #555555;
    --accent: #D62839; 
    --border: #eeeeee;
    --card-bg: #ffffff;
    --input-bg: #f9f9f9;
    
    /* Kart Yüzeyleri (Anasayfa) */
    --card-surface: #f4f4f6; 
    --overlay-bar: rgba(245, 245, 247, 0.95);
    --overlay-text: #1a1a1a;

    /* Kart Yüzeyleri (Arşiv/Kategori) */
    --card-surface-alt: #fdfbf7;
    --overlay-bar-alt: #fff0f3;
    --overlay-text-alt: #5c0011;

    /* Banner */
    --banner-bg: #f4f4f6;

    /* Efektler */
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --bg-body: #121212;
    --bg-header: rgba(18, 18, 18, 0.98);
    --text-main: #f1f1f1;
    --text-sec: #a0a0a0;
    --accent: #ff5c77;
    --border: #333333;
    --card-bg: #1e1e1e;
    --input-bg: #252525;
    --card-surface: #1f1f1f;
    --overlay-bar: rgba(35, 35, 35, 0.98);
    --overlay-text: #ffffff;
    --card-surface-alt: #1e1e1e;
    --overlay-bar-alt: #2a0a10;
    --overlay-text-alt: #ffccd5;
    --banner-bg: #1f1f1f;
    --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================================
   2. GENEL SIFIRLAMA VE YAPI
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-main); font-weight: 400; background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
img { display: block; width: 100%; height: auto; aspect-ratio: attr(width) / attr(height); object-fit: cover; background-color: var(--input-bg); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2 !important; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--text-main); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-spacer { margin-bottom: 80px; margin-top: 40px; }
.defer-render { content-visibility: auto; contain-intrinsic-size: 1px 500px; }

/* =========================================
   3. HEADER & NAV (Mobil/Desktop)
   ========================================= */
header { position: sticky; top: 0; z-index: 1000; background: var(--bg-header); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 50px; }
.logo { font-family: var(--font-heading); font-size: 2.2rem; color: var(--accent); display: flex; align-items: center; gap: 5px; line-height: 1 !important; letter-spacing: 1px; min-width: 140px; }

/* Desktop Menu */
.desktop-nav { display: none; }
@media (min-width: 992px) {
    .desktop-nav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; }
    .nav-item, .menu-item { position: relative; font-family: var(--font-heading); font-size: 1.1rem; cursor: pointer; padding: 10px 0; letter-spacing: 1px; }
    .menu-item-has-children::after { content: '▾'; margin-left: 5px; font-size: 0.8rem; vertical-align: middle; }
    
    /* WordPress Sub Menu */
    .sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--bg-header); min-width: 200px; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transition: all 0.2s ease; list-style: none; z-index: 999; }
    .menu-item:hover .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .sub-menu li a { display: block; padding: 10px 15px; border-radius: var(--radius-sm); font-family: var(--font-main); font-weight: 500; font-size: 0.95rem; text-transform: none; }
    .sub-menu li a:hover { background: var(--input-bg); color: var(--accent); }
}

.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-btn, .hamburger, .close-btn { background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; color: var(--text-main); display: flex; align-items: center; justify-content: center; }
.theme-btn svg, .close-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-sun { display: none; } .icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; } [data-theme="dark"] .icon-sun { display: block; }
.hamburger { flex-direction: column; gap: 6px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--text-main); border-radius: 2px; }
@media (min-width: 992px) { .hamburger { display: none; } }

/* Drawer / Mobil Menü */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.drawer { position: fixed; top: 0; right: 0; width: 85%; max-width: 350px; height: 100%; background: var(--bg-body); z-index: 2001; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 25px; display: flex; flex-direction: column; overflow-y: auto; will-change: transform; }
body.menu-open .drawer-overlay { opacity: 1; visibility: visible; }
body.menu-open .drawer { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.drawer-nav { list-style: none; padding: 0; margin: 0; }
.drawer-nav li { border-bottom: 1px solid var(--border); }
.drawer-nav a { display: block; padding: 15px 0; font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-main); text-decoration: none; letter-spacing: 1px; min-height: 48px; display: flex; align-items: center; }

/* =========================================
   4. ANASAYFA BİLEŞENLERİ (Hero, Manset, Arama)
   ========================================= */
.hero-intro { 
    text-align: center; 
    margin: 40px 0; 
    padding: 0 15px; /* Mobilde kenarlara yapışmaması için */
}

.hero-intro h1 { 
    font-size: 3.5rem; /* Biraz küçülttük, çok uzun sloganlarda patlamasın */
    margin-bottom: 10px; 
    line-height: 1.2 !important; 
    font-weight: 800;
    text-align: center; /* Kesin ortalama */
    display: inline-block; /* Genişliği içeriği kadar olsun */
    max-width: 900px; /* Çok uzunsa yanlara yayılmasın */
}

/* Mobilde fontu ayarlamak için */
@media (max-width: 768px) {
    .hero-intro h1 { 
        font-size: 2.2rem; 
    }
}

.manset-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .manset-grid { grid-template-columns: repeat(3, 1fr); } }

.manset-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; group: isolate; box-shadow: var(--shadow); }
.manset-card img { transition: transform 0.5s; width: 100%; height: 100%; object-fit: cover; }
.manset-card:hover img { transform: scale(1.05); }
.manset-overlay { position: absolute; bottom: 15px; left: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); padding: 15px; border-radius: var(--radius-md); color: #1a1a1a; text-align: center; }
[data-theme="dark"] .manset-overlay { background: rgba(30, 30, 30, 0.95); color: #fff; }
.manset-card h2 { font-size: 1.3rem; margin: 0; line-height: 1.2 !important; text-transform: uppercase; letter-spacing: 1px; }

/* Arama Kutusu */
.search-section { display: flex; justify-content: center; margin: 50px 0; padding: 0 20px; }
.search-wrapper { position: relative; width: 100%; max-width: 600px; }
.search-input { width: 100%; padding: 18px 25px; padding-right: 60px; border-radius: 50px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text-main); font-family: var(--font-main); font-size: 1.1rem; outline: none; box-shadow: var(--shadow); transition: border-color 0.3s; }
.search-input:focus { border-color: var(--accent); }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: var(--accent); border: none; width: 45px; height: 45px; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* =========================================
   5. KART TASARIMLARI & GRIDLER
   ========================================= */
.grid-3 { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0; }
.btn-more { font-family: var(--font-heading); background: var(--accent); color: #ffffff; padding: 8px 25px; border-radius: 30px; font-size: 1rem; letter-spacing: 1px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

.tag { font-family: var(--font-heading); font-size: 0.85rem; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 1px; font-weight: 800; text-transform: uppercase; }
.news-meta { font-family: var(--font-main); font-weight: 500; font-size: 0.85rem; color: var(--text-sec); display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; line-height: 1.6; }
.author-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.excerpt { font-size: 0.95rem; color: var(--text-sec); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6 !important; }

/* TİP 1: Standart Kart (Anasayfa) */
.news-card-standard { display: flex; flex-direction: column; height: 100%; background-color: var(--card-surface); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s; border: 1px solid var(--border); }
.news-card-standard:hover { transform: translateY(-5px); }
.news-card-standard .post-thumb { width: 100%; aspect-ratio: 3/2; margin-bottom: 20px; background-color: var(--input-bg); overflow: hidden; }
.news-card-standard .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card-standard:hover .post-thumb img { transform: scale(1.05); }
.news-card-standard .news-card-content { padding: 0 20px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-standard h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.2 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* TİP 2: Overlay Kart (Anasayfa & Arşiv) */
.news-card-overlay, .news-card-overlay-alt { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; width: 100%; height: 100%; min-height: 350px; display: flex; flex-direction: column; transition: transform 0.3s; }
.news-card-overlay:hover, .news-card-overlay-alt:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card-overlay img, .news-card-overlay-alt img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; z-index: 1; }
.news-card-overlay:hover img, .news-card-overlay-alt:hover img { transform: scale(1.05); }

/* Overlay Box Farklılıkları */
.overlay-box { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--overlay-bar); padding: 20px; z-index: 2; backdrop-filter: blur(10px); border-top: 1px solid rgba(0,0,0,0.05); }
.overlay-box h3 a { color: var(--overlay-text) !important; text-decoration: none; }

.overlay-box-alt { position: absolute; bottom: 0; left: 0; width: 100%; background: var(--overlay-bar-alt); padding: 20px; z-index: 2; backdrop-filter: blur(5px); border-top: 1px solid rgba(0,0,0,0.05); }
.overlay-box-alt h3 { color: var(--overlay-text-alt) !important; font-size: 1.3rem; margin-bottom: 5px; line-height: 1.2 !important; }
.news-card-overlay-alt .news-meta { color: var(--text-sec); opacity: 0.8; }

/* TİP 3: Popular Kart */
/* TİP 3: POPULAR KART (Güncellendi: Kutu Görünümü) */
.news-card-popular { 
    display: flex; 
    flex-direction: column; 
    text-decoration: none;
    /* Yeni eklenen satırlar: Kart Görünümü */
    background-color: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden; /* Köşelerin yuvarlanması için */
    height: 100%; /* Hepsinin eşit boyda olması için */
    transition: transform 0.3s;
}

.news-card-popular:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-card-popular .post-thumb { 
    width: 100%; 
    aspect-ratio: 3/2; /* Görsel oranını standart yaptık */
    margin-bottom: 0; /* Görsel altındaki boşluğu sildik */
    background-color: var(--input-bg); 
    border-radius: 0; /* İçerideki yuvarlamayı kaldırdık, dış kutu zaten yuvarlak */
}

.news-card-popular .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Başlık ve Meta bilgileri için iç boşluk */
.news-card-popular h3 { 
    font-size: 1.2rem; 
    margin-bottom: 5px; 
    line-height: 1.3 !important; 
    padding: 15px 15px 5px 15px; /* Yazıya boşluk verdik */
}

.popular-meta { 
    font-size: 0.9rem; 
    color: var(--text-sec); 
    font-weight: 700; 
    font-family: var(--font-main);
    padding: 0 15px 15px 15px; /* Meta veriye boşluk verdik */
}

/* TİP 4: Alt Kart (Archive Sayfası İçin) */
.archive-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .archive-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card-alt { display: flex; flex-direction: column; height: 100%; background-color: var(--card-surface-alt); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.3s; border: 1px solid var(--border); }
.news-card-alt:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card-alt .post-thumb { width: 100%; aspect-ratio: 3/2; margin-bottom: 20px; background-color: var(--input-bg); overflow: hidden; }
.news-card-alt .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card-alt:hover .post-thumb img { transform: scale(1.05); }
.news-card-alt .news-card-content { padding: 0 20px 20px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-alt h3 { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.2 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   6. SINGLE (İÇERİK) SAYFASI STİLLERİ
   ========================================= */
.article-hero-section { margin-top: 0; margin-bottom: 40px; min-height: 75vh; }
.article-hero-grid { display: block; width: 100%; position: relative; }
.hero-image-wrapper { width: 100%; height: 75vh; overflow: hidden; position: relative; background-color: var(--input-bg); border-radius: 0; }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.article-header-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 20px 40px 20px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); z-index: 2; color: #ffffff; display: flex; flex-direction: column; justify-content: flex-end; }
.article-header-content h1 { font-size: 2.2rem; line-height: 1.1 !important; margin-bottom: 15px; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* Breadcrumb */
.breadcrumb-nav { margin-bottom: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); font-family: var(--font-main); white-space: nowrap; overflow-x: auto; }
.breadcrumb-list { display: flex; list-style: none; padding: 0; margin: 0; align-items: center; gap: 8px; }
.breadcrumb-item a { color: inherit; font-weight: 600; opacity: 0.9; }

@media (min-width: 992px) {
    .article-hero-section { margin-top: 40px; margin-bottom: 80px; min-height: auto; }
    .article-hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: center; }
    .hero-image-wrapper { height: auto; aspect-ratio: 3/4; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
    .article-header-content { position: static; background: none; padding: 0; color: var(--text-main); display: flex; flex-direction: column; justify-content: center; width: auto; }
    .article-header-content h1 { font-size: 3.5rem; color: var(--text-main); text-shadow: none; margin-bottom: 20px; }
    .breadcrumb-nav { color: var(--text-sec); margin-bottom: 25px; }
}

.article-container { max-width: 800px; margin: 0 auto 80px auto; padding: 0 20px; }
.content-body { font-size: 1.1rem; color: var(--text-main); }
.content-body p { margin-bottom: 1.5em; line-height: 1.8 !important; }
.content-body h2 { font-size: 1.8rem; margin-top: 2.5em; margin-bottom: 0.8em; position: relative; }
.content-body h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin-top: 10px; border-radius: 2px; }
.content-body blockquote { margin: 2.5em 0; padding: 30px; background-color: var(--input-bg); border-left: 5px solid var(--accent); font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.content-body figure img { border-radius: var(--radius-md); width: 100%; height: auto; }

/* =========================================
   7. YORUMLAR (Single)
   ========================================= */
.comments-section { max-width: 800px; margin: 0 auto 80px auto; padding: 0 20px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { margin-bottom: 30px; }
.comment-body { display: flex; gap: 20px; }
.comment-avatar img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.comment-content { flex-grow: 1; background: var(--input-bg); padding: 20px; border-radius: var(--radius-md); }
.comment-author { font-weight: 800; font-family: var(--font-heading); }
.comment-respond { margin-top: 60px; background: var(--input-bg); padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-body); color: var(--text-main); font-family: var(--font-main); outline: none; }
.submit-btn { background: var(--accent); color: #fff; border: none; padding: 15px 30px; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; border-radius: 30px; cursor: pointer; transition: all 0.3s; }
.submit-btn:hover { background: var(--text-main); }

/* =========================================
   8. DİĞER (Trend, Pagination, Footer)
   ========================================= */
.trending-header { text-align: center; margin-bottom: 30px; }
.trending-header h2 { font-size: 2.8rem; }
.trending-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.topic-item { text-align: center; cursor: pointer; transition: transform 0.3s; display: block; text-decoration: none; color: inherit; }
.topic-item:hover { transform: translateY(-5px); }
.topic-img { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 2px solid transparent; transition: 0.3s; background-color: var(--input-bg); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #ccc; }
.topic-item:hover .topic-img { border-color: var(--accent); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.page-numbers { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--input-bg); color: var(--text-main); font-family: var(--font-heading); font-size: 1.2rem; cursor: pointer; transition: 0.3s; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--accent); color: white; }

.subscribe-banner { background: var(--banner-bg); border-radius: var(--radius-lg); padding: 60px 20px; text-align: center; position: relative; overflow: hidden; margin-top: 50px; }
.subscribe-banner::before { content: ''; position: absolute; top: -50px; left: -50px; width: 150px; height: 150px; background: var(--accent); opacity: 0.1; border-radius: 50%; filter: blur(40px); }
.sub-content { position: relative; z-index: 2; }
.btn-subscribe { background: var(--accent); color: white; border: none; padding: 12px 30px; border-radius: 30px; font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4); }
.sub-avatars { display: flex; justify-content: center; margin-bottom: 20px; }
        .sub-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--banner-bg); margin-left: -10px; object-fit: cover; }
        .sub-avatars img:first-child { margin-left: 0; }

footer { margin-top: 50px; padding: 60px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-logo { font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; display: block; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; font-family: var(--font-heading); font-size: 1.2rem; }
.socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: var(--input-bg); display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: 0.3s; }
.social-link:hover { background: var(--accent); color: white; }

/* Pagination Düzeltmesi */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}
/* WordPress'in oluşturduğu linkler */
.page-numbers { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--input-bg); 
    color: var(--text-main); 
    font-family: var(--font-heading); 
    font-size: 1.1rem; 
    text-decoration: none; 
    transition: 0.3s;
    border: 1px solid var(--border);
}

.page-numbers.current, .page-numbers:hover { 
    background: var(--accent); 
    color: white; 
    border-color: var(--accent);
}

/* =========================================
   MOBİL MENÜ İYİLEŞTİRMELERİ
   ========================================= */

/* 1. Kapatma Butonunu Büyüt */
.drawer-header .close-btn {
    font-size: 3.5rem; /* Çarpı (X) işaretinin boyutu */
    width: 60px;       /* Butonun genişliği */
    height: 60px;      /* Butonun yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.05); /* Hafif gri bir zemin (daha belirgin olsun diye) */
    border-radius: 50%; /* Yuvarlak olsun */
    padding: 0;
    line-height: 1;
}

/* 2. Arama Kutusunu Büyüt */
.drawer-search input {
    height: 60px;       /* Kutuyu uzattık */
    font-size: 1.2rem;  /* İçindeki yazıyı büyüttük */
    padding: 10px 50px 10px 25px; /* İç boşlukları artırdık */
    border-radius: 12px; /* Köşeleri biraz daha yumuşattık */
    background-color: #fff;
    border: 2px solid #eee; /* Çerçeveyi belirginleştirdik */
}

/* 3. Arama İkonunu Büyüt */
.drawer-search button {
    width: 60px; /* Tıklama alanı */
    height: 60px;
    right: 5px; /* Konum ayarı */
}

.drawer-search button svg {
    width: 28px; /* İkonun görsel boyutu */
    height: 28px;
    stroke-width: 2.5px; /* Çizgileri kalınlaştır */
}

/* --- LOGO ARKAPLAN DÜZELTMESİ --- */
.logo img {
    background-color: transparent !important; /* Arka planı şeffaf yap */
    box-shadow: none !important; /* Varsa gölgeyi kaldır */
    border: none !important; /* Varsa çerçeveyi kaldır */
}

/* =========================================
   İÇERİK SAYFASI YAZAR RESMİ DÜZELTMESİ
   ========================================= */

/* WordPress'in standart avatar sınıfını hedefler */
.single .post-meta img,
.entry-meta img,
img.avatar {
    width: 40px !important;       /* Genişliği sabitle */
    height: 40px !important;      /* Yüksekliği sabitle */
    border-radius: 50%;           /* Yuvarlak yap */
    display: inline-block !important; /* Satır içi hizala */
    vertical-align: middle;       /* Yazı ile ortala */
    margin-right: 10px;           /* Sağdan boşluk ver */
    background: transparent !important; /* Arka planı temizle */
    box-shadow: none !important;  /* Gölgeyi kaldır */
}

/* Eğer içerik başlığının (header) içindeyse hizalamayı düzelt */
.entry-header .entry-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* =========================================
   TEKİL YAZI (SINGLE) META BİLGİLERİ DÜZELTMESİ
   ========================================= */

/* 2. Tarih ve Yazar Yazılarını Küçültme */
/* Başlığın altındaki o büyük yazıları kibar hale getirir */
.entry-meta, 
.post-meta,
.meta-info {
    font-size: 0.75rem !important;      /* Yazı boyutunu küçült (yaklaşık 13-14px) */
    font-weight: 500 !important;
    color: #777 !important;             /* Rengi gri yap */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 10px !important;
    margin-bottom: 25px !important;     /* İçerikle arayı aç */
    display: flex !important;
    align-items: center !important;     /* Dikeyde ortala */
    flex-wrap: wrap !important;
    line-height: 1.5 !important;
}

/* Linklerin (Yazar isminin) Rengi */
.entry-meta a, 
.post-meta a {
    color: #333 !important; /* İsim daha koyu olsun */
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-right: 15px; /* Tarih ile yazar arasına boşluk */
}



/* =========================================
   YORUM ALANI TASARIMI (HTML Uyumlu)
   ========================================= */
.comments-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li.comment {
    margin-bottom: 30px;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 16px;
}

[data-theme="dark"] .comment-content {
    background: #252525;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 1rem;
    text-transform: uppercase;
}
[data-theme="dark"] .comment-author { color: #f1f1f1; }

.comment-date {
    font-size: 0.85rem;
    color: #555;
}

.comment-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #333;
}
[data-theme="dark"] .comment-text p { color: #ccc; }

.comment-reply-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #D62839;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }

/* Alt Yorumlar (Children) */
.comment-list .children {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 20px;
    border-left: 2px solid #eee;
}
.comment-list .children li {
    padding-left: 20px;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .comment-list .children { margin-left: 60px; }
}

/* YORUM FORMU TASARIMI */
.comment-respond {
    margin-top: 60px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #eee;
}
[data-theme="dark"] .comment-respond { background: #1e1e1e; border-color: #333; }

.comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}
.comment-reply-title small a {
    font-size: 0.8rem;
    color: #D62839;
    margin-left: 10px;
    display: inline-block;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 0; }
.form-full { grid-column: 1 / -1; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}
[data-theme="dark"] .form-group label { color: #f1f1f1; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
[data-theme="dark"] .form-control {
    background: #121212;
    border-color: #333;
    color: #fff;
}
.form-control:focus { border-color: #D62839; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* CAPTCHA STİLLERİ */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
}

.refresh-captcha {
    background: #D62839;
    color: white;
    border: none;
    padding: 0 12px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.refresh-captcha:hover { background: #1a1a1a; }

.submit-btn {
    background: #D62839;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .comment-form { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {

    /* 1. LOGO KAPSAYICISI */
    .logo {
        font-size: 1.4rem !important;
        min-width: auto !important;
        max-width: 65%;               /* Genişliği %65'e çıkardık */
        white-space: nowrap;
        flex-shrink: 1;
        display: flex !important;     /* Resmi dikey ortalamak için */
        align-items: center;
        overflow: visible !important; /* KESİNLİKLE GİZLEME (Taşarsa görünsün) */
    }

    /* 2. LOGO RESMİ (RESMİ KÜÇÜLTEN KOD) */
    /* Header.php içindeki inline style (40px) bunu ezmesin diye !important kullanıyoruz */
    .logo img {
        height: 30px !important;      /* Yüksekliği 40px'den 24px'e düşürdük */
        width: auto !important;       /* En-boy oranını koru */
        max-width: 100% !important;   /* Asla kapsayıcıdan geniş olma */
        object-fit: contain;          /* Resmin tamamını kutuya sığdır (Kesme yapma) */
    }

    /* 3. Header Boşluk Ayarı */
    .header-inner {
        padding-left: 10px;
        padding-right: 10px;
        gap: 5px;
    }

    /* Diğer mobil ayarlarınız (Menü vb.) aynı kalabilir... */
    .drawer-nav a, .submenu-toggle {
        font-family: var(--font-heading) !important;
        font-weight: 800 !important;
        font-size: 1.2rem !important;
        letter-spacing: 0.5px !important;
        padding: 12px 0 !important;
    }

    .drawer-search {
        position: relative !important;
        display: block !important;
        width: 100% !important;
    }
    .drawer-search input {
        width: 100% !important;
        padding-right: 50px !important;
        height: 46px !important;
    }
    .drawer-search button {
        position: absolute !important;
        top: 0 !important;
        right: 5px !important;
        height: 100% !important;
        width: 40px !important;
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
}

/* =========================================
   MOBİL MENÜ DÜZELTMELERİ
   ========================================= */

/* 1. Header Hizalaması (Logo ve Kapat Butonu) */
.drawer-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    width: 100%;
}

/* Kapat butonu boyutu ve konumu */
.close-btn {
    font-size: 2.5rem !important;
    line-height: 1 !important;
    padding: 0 10px !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--text-main);
}

/* Mobilde logo boyutunu sabitle */
.mobile-drawer-logo img {
    height: 30px !important;
    width: auto !important;
    object-fit: contain;
}

/* 2. Arama Kutusu ve İkonu */
.drawer-search {
    margin-bottom: 30px;
}

.mobile-search-form {
    position: relative !important; /* İkonu buna göre konumlandıracağız */
    width: 100%;
}

.mobile-search-form input {
    width: 100% !important;
    padding: 12px 50px 12px 15px !important; /* Sağdan boşluk bırak ki ikon binmesin */
    border-radius: 30px !important;
    border: 1px solid var(--border) !important;
    background: var(--input-bg) !important;
    height: 46px !important;
}

.mobile-search-form button {
    position: absolute !important;
    top: 50% !important;
    right: 5px !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 5;
    color: var(--text-sec);
}

/* 3. Menü Hiyerarşisi (Alt Menüler) */
.drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-nav li {
    border-bottom: 1px solid var(--border);
}

.drawer-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

/* Alt menü (Sub-menu) tasarımı */
.drawer-nav .sub-menu {
    list-style: none !important;
    padding-left: 20px !important; /* İçerden başlatarak hiyerarşi ver */
    background-color: rgba(0,0,0,0.03); /* Hafif bir zemin rengi */
    display: block; /* Görünür yap */
    margin-bottom: 10px;
    border-radius: 8px;
}

.drawer-nav .sub-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.drawer-nav .sub-menu li:last-child {
    border-bottom: none !important;
}

.drawer-nav .sub-menu a {
    font-size: 1rem !important; /* Alt menü yazı boyutu biraz daha küçük */
    font-weight: 500 !important;
    padding: 10px 0 !important;
}


/* =========================================
   SAYFALAMA (PAGINATION) DÜZELTMESİ
   ========================================= */

/* 1. Kapsayıcıyı Yatay Hizala */
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* 2. Sayfa Numaraları (Yuvarlak Stil) */
.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--input-bg);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* 3. Aktif Sayfa ve Hover Durumu */
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 4. Dots (...) Stili */
.pagination-wrapper .dots {
    background: transparent !important;
    color: var(--text-sec);
    width: auto;
    box-shadow: none !important;
    transform: none !important;
}

/* 5. "Navigation" Başlığını Gizle (Erişilebilirlik metni) */
.pagination-wrapper h2.screen-reader-text {
    display: none;
}

/* Sayfalama Mobilde Sıkışırsa Esnek Davransın */
@media (max-width: 768px) {
    .pagination-wrapper .nav-links {
        flex-wrap: wrap !important; /* Sığmazsa alt satıra geçsin ama yine yan yana dizersin */
        gap: 5px !important;
    }
}

/* =========================================
   VİDEO GALERİ TASARIMI
   ========================================= */

/* 1. Video Grid Yapısı */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Mobilde tek, Tablette iki sütun */
@media (max-width: 992px) {
    .video-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .video-gallery-grid { grid-template-columns: 1fr; }
}

/* 2. Video Kartı (Kapsayıcı) */
.video-card-item {
    display: flex;
    flex-direction: column;
    group: isolate; /* Hover efektleri için */
}

/* 3. Görsel Alanı ve Oynat İkonu */
.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Video formatı */
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    margin-bottom: 15px;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover'da Resim Yakınlaşsın */
.video-card-item:hover .video-card-thumb img {
    transform: scale(1.05);
}

/* Kategori Etiketi (Sol Üst) */
.video-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* Oynat Butonu (Merkez) */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Hafif karartma */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1;
}

.video-card-item:hover .play-overlay {
    background: rgba(0,0,0,0.1); /* Hover'da aydınlat */
}

.play-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.play-circle svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
    margin-left: 4px; /* Optik dengeleme */
}

/* Hover'da Buton Büyüsün */
.video-card-item:hover .play-circle {
    transform: scale(1.2);
    background: #fff;
}

/* 4. Alt Bilgiler */
.video-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.video-card-meta {
    font-size: 0.85rem;
    color: var(--text-sec);
    font-weight: 500;
}