/*
Theme Name: Safeto
Theme URI: https://blog.safeto.win
Author: Safeto
Description: Güvenlik odaklı minimalist WordPress teması
Version: 1.0.0
License: GNU General Public License v2
Text Domain: safeto
*/

:root {
    --renk-birincil: #2ECC71;
    --renk-ikincil: #27AE60;
    --renk-arkaplan: #FFFFFF;
    --renk-yazi: #333333;
    --renk-acik-gri: #F5F5F5;
    --renk-sinir: #E0E0E0;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max-genislik: 1200px;
    --sidebar-genislik: 300px;
    --gecis: 0.3s ease;
}

[data-tema="karanlik"] {
    --renk-arkaplan: #1A1A2E;
    --renk-acik-gri: #16213E;
    --renk-yazi: #E0E0E0;
    --renk-sinir: #2a2a4a;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--renk-arkaplan);
    color: var(--renk-yazi);
    line-height: 1.7;
    transition: background-color var(--gecis), color var(--gecis);
}

a { color: var(--renk-birincil); text-decoration: none; transition: color var(--gecis); }
a:hover { color: var(--renk-ikincil); }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--renk-yazi);
}

p { margin-bottom: 1rem; }

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

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: var(--renk-arkaplan);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.breaking-news {
    border-bottom: 2px solid var(--renk-birincil);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 40px; width: auto; }
.site-logo .site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--renk-yazi);
}
.site-logo .site-name span { color: var(--renk-birincil); }

/* Anasayfada logo h1 wrapper — görsel düzeni bozmamalı */
.site-logo-h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Navigasyon */
.main-nav ul { display: flex; gap: 8px; }
.main-nav ul li a {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--renk-yazi);
    transition: background var(--gecis), color var(--gecis);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    background: var(--renk-birincil);
    color: #fff;
}

/* Header Sağ */
.header-actions { display: flex; align-items: center; gap: 12px; }

.search-toggle, .dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--renk-yazi);
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 4px;
    transition: color var(--gecis), background var(--gecis);
}
.search-toggle:hover, .dark-mode-toggle:hover {
    color: var(--renk-birincil);
    background: var(--renk-acik-gri);
}

/* Arama Kutusu */
.header-search {
    display: none;
    padding: 12px 0;
    border-top: 1px solid var(--renk-sinir);
}
.header-search.aktif { display: block; }
.header-search form { display: flex; gap: 8px; }
.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--renk-sinir);
    border-radius: 4px;
    background: var(--renk-acik-gri);
    color: var(--renk-yazi);
    font-size: 0.95rem;
}
.header-search button {
    padding: 10px 20px;
    background: var(--renk-birincil);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--renk-yazi);
    transition: all var(--gecis);
}
.hamburger.aktif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aktif span:nth-child(2) { opacity: 0; }
.hamburger.aktif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   LAYOUT
   ========================================= */
.site-main {
    padding: 40px 0;
}

.site-content {
    padding-top: 30px;
}

/* Header altı reklam boşluğu */
.reklam-alani.reklam-header_alti {
    margin: 16px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-genislik);
    gap: 40px;
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* =========================================
   MAGAZINE ANASAYFA
   ========================================= */
.magazine-hero {
    margin-bottom: 40px;
}

.magazine-hero .post-card-buyuk {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--renk-acik-gri);
}

.magazine-hero .post-card-buyuk img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.magazine-hero .post-card-buyuk .post-bilgi {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
}

.magazine-hero .post-card-buyuk .post-bilgi h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.magazine-hero .post-card-buyuk .post-bilgi h2 a { color: #fff; }
.magazine-hero .post-card-buyuk .post-bilgi h2 a:hover { color: var(--renk-birincil); }

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* =========================================
   POST CARD (KÜÇÜK)
   ========================================= */
.post-card {
    background: var(--renk-arkaplan);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--renk-sinir);
    transition: transform var(--gecis), box-shadow var(--gecis);
    display: flex;
    flex-direction: row;
    min-height: 160px;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-card .post-card-resim {
    flex-shrink: 0;
    width: 240px;
    overflow: hidden;
}

.post-card .post-card-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card .post-card-resim-yok {
    flex-shrink: 0;
    width: 240px;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--renk-sinir);
    font-size: 2rem;
}

.post-card .post-icerik {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.post-card .post-kategori {
    display: inline-block;
    background: var(--renk-ikincil);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.post-card h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
}

.post-card h3 a { color: var(--renk-yazi); }
.post-card h3 a:hover { color: var(--renk-birincil); }

.post-card .post-ozet {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.post-meta span { display: flex; align-items: center; gap: 4px; }

/* Reklam Arası */
.reklam-arasi {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar { position: sticky; top: 90px; }

.widget {
    background: var(--renk-arkaplan);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--renk-sinir);
    overflow: hidden;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--renk-birincil);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--renk-yazi);
    position: relative;
}

/* Başlık sol aksanı */
.widget-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    bottom: -1px;
    width: 4px;
    background: var(--renk-birincil);
    border-radius: 0 2px 2px 0;
}

.widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid var(--renk-sinir);
    font-size: 0.88rem;
    line-height: 1.4;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
    color: var(--renk-yazi);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--gecis), padding-left var(--gecis);
}

.widget ul li a::before {
    content: '›';
    color: var(--renk-birincil);
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.widget ul li a:hover {
    color: var(--renk-birincil);
    padding-left: 4px;
}

.widget-reklam { text-align: center; padding: 10px; }

/* Arama formu */
.widget .search-form {
    display: flex;
    gap: 0;
}

.widget .search-form input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--renk-sinir);
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: var(--renk-acik-gri);
    color: var(--renk-yazi);
    font-size: 0.9rem;
    outline: none;
}

.widget .search-form input[type="search"]:focus {
    border-color: var(--renk-birincil);
}

.widget .search-form button,
.widget .search-form input[type="submit"] {
    padding: 9px 14px;
    background: var(--renk-birincil);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--gecis);
}

.widget .search-form button:hover,
.widget .search-form input[type="submit"]:hover {
    background: var(--renk-ikincil);
}

/* Tag cloud */
.widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget .tagcloud a {
    font-size: 0.8rem !important;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--renk-sinir);
    color: var(--renk-yazi) !important;
    background: var(--renk-acik-gri);
    transition: all var(--gecis);
    line-height: 1.4;
}

.widget .tagcloud a:hover {
    background: var(--renk-birincil);
    color: #fff !important;
    border-color: var(--renk-birincil);
}

/* =========================================
   ARŞİV / KATEGORİ SAYFASI
   ========================================= */
.arsiv-baslik {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--renk-birincil);
}

.arsiv-baslik h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.arsiv-baslik p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* =========================================
   TEKİL YAZI
   ========================================= */
.single-post-header { margin-bottom: 30px; }

.single-post-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-post-header .post-meta { margin-bottom: 20px; }

.single-post-header .featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-post-header .featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.8rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote {
    border-left: 4px solid var(--renk-birincil);
    padding: 12px 20px;
    background: var(--renk-acik-gri);
    border-radius: 0 4px 4px 0;
    margin: 1.5rem 0;
    font-style: italic;
}
.post-content code {
    background: var(--renk-acik-gri);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--renk-birincil);
}
.post-content pre {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content img { border-radius: 6px; margin: 1rem 0; }
.post-content a { text-decoration: underline; }

/* Okuma Süresi */
.okuma-suresi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--renk-acik-gri);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--renk-birincil); }
.breadcrumb .ayrac { color: #ccc; }

/* Etiketler */
.post-tags { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a {
    background: var(--renk-acik-gri);
    border: 1px solid var(--renk-sinir);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--renk-yazi);
    transition: all var(--gecis);
}
.post-tags a:hover { background: var(--renk-birincil); color: #fff; border-color: var(--renk-birincil); }

/* Yazar Kutusu */
.yazar-kutusu {
    display: flex;
    gap: 20px;
    background: var(--renk-acik-gri);
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid var(--renk-sinir);
}
.yazar-kutusu img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.yazar-kutusu .yazar-bilgi h4 { margin-bottom: 6px; }
.yazar-kutusu .yazar-bilgi p { font-size: 0.9rem; color: #666; margin: 0; }

/* İlgili Yazılar */
.ilgili-yazilar { margin: 40px 0; }
.ilgili-yazilar h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--renk-birincil); }
.ilgili-yazilar .grid { display: flex; flex-direction: column; gap: 16px; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--renk-acik-gri);
    border-top: 2px solid var(--renk-birincil);
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 50px 0;
}

.footer-widget h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--renk-birincil);
}

.footer-widget ul li { padding: 6px 0; font-size: 0.9rem; }
.footer-widget ul li a { color: var(--renk-yazi); }
.footer-widget ul li a:hover { color: var(--renk-birincil); }

.footer-bottom {
    border-top: 1px solid var(--renk-sinir);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.sosyal-medya { display: flex; gap: 12px; }
.sosyal-medya a {
    color: #888;
    font-size: 1.1rem;
    transition: color var(--gecis);
}
.sosyal-medya a:hover { color: var(--renk-birincil); }

/* =========================================
   YORUMLAR
   ========================================= */
.yorumlar { margin: 40px 0; }
.yorumlar h3 { font-size: 1.2rem; margin-bottom: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--renk-birincil); }

.yorum-listesi .yorum {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--renk-sinir);
}
.yorum img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.yorum .yorum-icerik .yorum-meta { font-size: 0.85rem; color: #888; margin-bottom: 6px; }
.yorum .yorum-icerik .yorum-meta strong { color: var(--renk-yazi); margin-right: 8px; }
.yorum .yorum-icerik p { font-size: 0.95rem; margin: 0; }

.yorum-formu input,
.yorum-formu textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--renk-sinir);
    border-radius: 4px;
    background: var(--renk-acik-gri);
    color: var(--renk-yazi);
    font-family: var(--font);
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.yorum-formu textarea { height: 140px; resize: vertical; }
.yorum-formu button {
    background: var(--renk-birincil);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gecis);
}
.yorum-formu button:hover { background: var(--renk-ikincil); }

/* =========================================
   SAYFALAMA
   ========================================= */
.sayfalama {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.sayfalama a, .sayfalama span {
    padding: 8px 14px;
    border: 1px solid var(--renk-sinir);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--renk-yazi);
    transition: all var(--gecis);
}
.sayfalama a:hover, .sayfalama .current {
    background: var(--renk-birincil);
    color: #fff;
    border-color: var(--renk-birincil);
}

/* =========================================
   404 SAYFASI
   ========================================= */
.hata-sayfasi {
    text-align: center;
    padding: 80px 20px;
}
.hata-sayfasi h1 { font-size: 6rem; color: var(--renk-birincil); line-height: 1; }
.hata-sayfasi h2 { font-size: 1.5rem; margin-bottom: 16px; }
.hata-sayfasi p { color: #888; margin-bottom: 24px; }
.hata-sayfasi a {
    background: var(--renk-birincil);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

/* =========================================
   YARDIMCI
   ========================================= */
.screen-reader-text { position: absolute; left: -9999px; }
.reklam-alani { text-align: center; margin: 20px 0; }
.haber-yok { text-align: center; padding: 60px 20px; color: #888; }

/* =========================================
   BREAKING NEWS BANDI
   ========================================= */
.breaking-news {
    background: var(--renk-birincil);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 38px;
}

.breaking-etiket {
    background: #1a8a4a;
    padding: 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    z-index: 1;
}

.breaking-sarici {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 38px;
    display: flex;
    align-items: center;
}

.breaking-sarici-ic {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    white-space: nowrap;
}

.breaking-icerik {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.breaking-icerik a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity var(--gecis);
}

.breaking-icerik a:hover { opacity: 0.8; color: #fff; }

.breaking-ayrac { color: rgba(255,255,255,0.5); font-size: 0.7rem; }

/* =========================================
   KATEGORI BAZLI BOLUMLER
   ========================================= */
.kategori-bolumler-wrapper {
    padding: 10px 0;
}

.kategori-bolum {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--renk-sinir);
}

.kategori-bolum-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--renk-birincil);
}

.kategori-bolum-baslik h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kategori-bolum-baslik h2 a { color: var(--renk-yazi); }
.kategori-bolum-baslik h2 a:hover { color: var(--renk-birincil); }

.tumunu-goster {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--renk-birincil);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.kategori-yazilar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

/* 4. yazıdan itibaren yatay liste */
.kategori-liste {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--renk-sinir);
}

/* Kategori listesindeki post-card'lar — masaüstü: yatay, resim solda sabit 160px */
.kategori-liste .post-card {
    flex-direction: row;
    min-height: 110px;
    align-items: stretch;
}

.kategori-liste .post-card .post-card-resim {
    width: 160px;
    min-width: 160px;
    height: auto;
    flex-shrink: 0;
    align-self: stretch;
}

.kategori-liste .post-card .post-card-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kategori-liste .post-card .post-card-resim-yok {
    width: 160px;
    min-width: 160px;
    height: auto;
    min-height: 110px;
    align-self: stretch;
}

.kategori-kart {
    background: var(--renk-arkaplan);
    border: 1px solid var(--renk-sinir);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--gecis), box-shadow var(--gecis);
}

.kategori-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.kategori-kart-resim {
    display: block;
    height: 160px;
    overflow: hidden;
}

.kategori-kart-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--gecis);
}

.kategori-kart:hover .kategori-kart-resim img { transform: scale(1.04); }

.kategori-kart-resim-yok {
    height: 160px;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--renk-sinir);
    font-size: 2rem;
}

.kategori-kart-icerik {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kategori-kart-icerik h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.kategori-kart-icerik h3 a { color: var(--renk-yazi); }
.kategori-kart-icerik h3 a:hover { color: var(--renk-birincil); }

.kategori-kart-ozet {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .content-area { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .magazine-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .ilgili-yazilar .grid { flex-direction: column; }
    .kategori-yazilar { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobil (≤768px) --- */
@media (max-width: 768px) {

    /* Masaüstü nav gizle, hamburger göster */
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--renk-arkaplan);
        border-bottom: 2px solid var(--renk-birincil);
        padding: 12px 16px;
        z-index: 199;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .main-nav.aktif { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav ul li a {
        display: block;
        padding: 10px 14px;
        border-radius: 4px;
    }
    .hamburger { display: flex; }

    /* Reklam taşmasın */
    .reklam-alani { overflow: hidden; max-width: 100%; }
    .reklam-alani img,
    .reklam-alani iframe,
    .reklam-alani ins { max-width: 100% !important; height: auto !important; }

    /* Site içerik boşluğu */
    .site-content { padding-top: 16px; }

    /* Magazine hero */
    .magazine-hero .post-card-buyuk img { height: 240px; }
    .magazine-hero .post-card-buyuk .post-bilgi { padding: 16px; }
    .magazine-hero .post-card-buyuk .post-bilgi h2 { font-size: 1.2rem; margin-bottom: 8px; }

    /* Magazine grid — tek sütun */
    .magazine-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Post card — dikey */
    .post-card { flex-direction: column; min-height: unset; }
    .post-card .post-card-resim { width: 100%; height: 180px; flex-shrink: 0; }
    .post-card .post-card-resim img { width: 100%; height: 100%; object-fit: cover; }
    .post-card .post-card-resim-yok { width: 100%; height: 100px; }
    .post-card .post-icerik { padding: 14px; }
    .post-card h3 { font-size: 1rem; }

    /* Reklam arası */
    .reklam-arasi { grid-column: unset; width: 100%; }

    /* Kategori bölümleri — grid kartlar */
    .kategori-yazilar { grid-template-columns: 1fr; gap: 14px; }
    .kategori-kart-resim { height: 200px; }
    .kategori-kart-resim-yok { height: 120px; }
    .kategori-bolumler-wrapper { padding: 20px 0 6px; }

    /* Kategori liste kartları (4. yazı+) — mobilde dikey düzene geç */
    .kategori-liste .post-card {
        flex-direction: column;
        min-height: unset;
    }
    .kategori-liste .post-card .post-card-resim {
        width: 100%;
        min-width: 0;
        height: 180px;
        min-height: 0;
        flex-shrink: 0;
        align-self: auto;
    }
    .kategori-liste .post-card .post-card-resim img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .kategori-liste .post-card .post-card-resim-yok {
        width: 100%;
        min-width: 0;
        height: 120px;
        min-height: 0;
        align-self: auto;
    }

    /* Breaking news */
    .breaking-news { height: 36px; }
    .breaking-etiket { padding: 0 10px; font-size: 0.7rem; height: 36px; }
    .breaking-sarici { height: 36px; }

    /* Footer */
    .footer-widgets { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding: 16px 0; }

    /* Tekil yazı */
    .single-post-header h1 { font-size: 1.4rem; }
    .ilgili-yazilar .grid { flex-direction: column; }
    .yazar-kutusu { flex-direction: column; align-items: flex-start; }

    /* Sidebar */
    .sidebar { margin-top: 24px; }
}

/* --- Küçük mobil (≤480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .header-inner { height: 56px; }
    .site-logo .site-name { font-size: 1.15rem; }
    .magazine-hero .post-card-buyuk img { height: 200px; }
    .magazine-hero .post-card-buyuk .post-bilgi h2 { font-size: 1.05rem; }
    .magazine-hero .post-card-buyuk .post-bilgi { padding: 12px; }
    .post-card .post-card-resim { height: 150px; }
    .post-meta { flex-wrap: wrap; gap: 8px; }
    .kategori-kart-resim { height: 160px; }
    .kategori-liste .post-card .post-card-resim { height: 150px; }
    .sayfalama { gap: 4px; }
    .sayfalama a, .sayfalama span { padding: 6px 10px; font-size: 0.82rem; }
    .hata-sayfasi h1 { font-size: 4rem; }
    .hata-sayfasi { padding: 50px 16px; }
}

/* =========================================
   ANA SAYFA — TAM GENİŞLİK LAYOUT
   ========================================= */

/* content-area tam genişlik modu (anasayfa) */
.content-area--tam {
    display: block !important;
    grid-template-columns: unset !important;
}

.ana-sayfa-main {
    width: 100%;
}

/* =============================================
   HERO BÖLÜMÜ
   ============================================= */
.anasayfa-hero {
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--renk-acik-gri);
    border: 1px solid var(--renk-sinir);
}

.hero-ic {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 420px;
}

.hero-resim-link {
    display: block;
    overflow: hidden;
    height: 100%;
}

.hero-resim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-resim-link:hover .hero-resim {
    transform: scale(1.03);
}

.hero-resim-yok {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--renk-sinir);
}

.hero-bilgi {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: var(--renk-arkaplan);
}

.hero-kategori {
    font-size: 0.75rem;
    width: fit-content;
}

.hero-baslik {
    font-size: 1.65rem;
    line-height: 1.3;
    margin: 0;
}

.hero-baslik a {
    color: var(--renk-yazi);
    text-decoration: none;
}

.hero-baslik a:hover {
    color: var(--renk-birincil);
}

.hero-ozet {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.hero-meta {
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-devam-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--renk-birincil);
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    transition: background var(--gecis), transform var(--gecis);
    text-decoration: none;
}

.hero-devam-btn:hover {
    background: var(--renk-ikincil);
    color: #fff;
    transform: translateX(3px);
}

/* =============================================
   BÖLÜM BAŞLIĞI
   ============================================= */
.bolum-baslik {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.bolum-baslik h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    margin: 0;
}

.bolum-cizgi {
    flex: 1;
    height: 2px;
    background: var(--renk-sinir);
    position: relative;
}

.bolum-cizgi::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 2px;
    background: var(--renk-birincil);
}

/* =============================================
   3 SÜTUNLU YAZI GRID
   ============================================= */
.anasayfa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.anasayfa-reklam-arasi {
    grid-column: 1 / -1;
    text-align: center;
    padding: 8px 0;
}

/* Yazi Kart */
.yazi-kart {
    background: var(--renk-arkaplan);
    border: 1px solid var(--renk-sinir);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--gecis), box-shadow var(--gecis);
}

.yazi-kart:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
}

.yazi-kart-resim {
    display: block;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.yazi-kart-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.yazi-kart:hover .yazi-kart-resim img {
    transform: scale(1.04);
}

.yazi-kart-resim-yok {
    height: 200px;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--renk-sinir);
    flex-shrink: 0;
}

.yazi-kart-icerik {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.yazi-kart-baslik {
    font-size: 1rem;
    line-height: 1.45;
    margin: 0;
}

.yazi-kart-baslik a {
    color: var(--renk-yazi);
    text-decoration: none;
}

.yazi-kart-baslik a:hover {
    color: var(--renk-birincil);
}

.yazi-kart-ozet {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.yazi-kart-meta {
    font-size: 0.78rem;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--renk-sinir);
}

/* =============================================
   KARANLIK MOD — ANA SAYFA
   ============================================= */
[data-tema="karanlik"] .hero-bilgi {
    background: var(--renk-acik-gri);
}

[data-tema="karanlik"] .hero-ozet,
[data-tema="karanlik"] .yazi-kart-ozet {
    color: #aaa;
}

[data-tema="karanlik"] .yazi-kart-meta {
    border-top-color: var(--renk-sinir);
}

/* =============================================
   RESPONSIVE — ANA SAYFA
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .hero-ic {
        grid-template-columns: 1fr 360px;
    }

    .hero-bilgi {
        padding: 28px 24px;
        gap: 12px;
    }

    .hero-baslik {
        font-size: 1.4rem;
    }

    .anasayfa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-ic {
        grid-template-columns: 1fr;
    }

    .hero-resim-link {
        height: 240px;
    }

    .hero-resim-yok {
        min-height: 200px;
    }

    .hero-bilgi {
        padding: 24px 20px;
        gap: 12px;
    }

    .hero-baslik {
        font-size: 1.25rem;
    }

    .hero-ozet {
        display: none;
    }

    .anasayfa-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .yazi-kart-resim {
        height: 180px;
    }

    .yazi-kart-resim-yok {
        height: 140px;
    }
}

/* Küçük mobil */
@media (max-width: 480px) {
    .anasayfa-hero {
        border-radius: 8px;
        margin-bottom: 32px;
    }

    .hero-resim-link {
        height: 200px;
    }

    .hero-bilgi {
        padding: 18px 16px;
    }

    .hero-baslik {
        font-size: 1.1rem;
    }

    .hero-devam-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    .yazi-kart-resim {
        height: 160px;
    }
}


/* =========================================
   ANASAYFA — HERO + SON 5 YAZI
   ========================================= */

/* Hero üst bölüm: sol büyük + sağ liste */
.hero-ust-bolum {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 36px;
    align-items: start;
}

/* Sol: hero resmi tam yüksekliği kaplasın */
.hero-sol .magazine-hero {
    margin-bottom: 0;
}

.hero-sol .post-card-buyuk img {
    height: 380px;
}

/* Sağ: Son yazılar paneli */
.hero-sag {
    background: var(--renk-acik-gri);
    border: 1px solid var(--renk-sinir);
    border-radius: 8px;
    overflow: hidden;
}

.hero-sag-baslik {
    background: var(--renk-birincil);
    color: #fff;
    padding: 10px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Mini kart */
.hero-mini-kart {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--renk-sinir);
    transition: background var(--gecis);
}

.hero-mini-kart:last-child {
    border-bottom: none;
}

.hero-mini-kart:hover {
    background: var(--renk-arkaplan);
}

.hero-mini-resim {
    flex-shrink: 0;
    width: 72px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    display: block;
}

.hero-mini-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-mini-resim-yok {
    flex-shrink: 0;
    width: 72px;
    height: 60px;
    border-radius: 5px;
    background: var(--renk-sinir);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #aaa;
}

.hero-mini-icerik {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero-mini-kategori {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--renk-birincil);
    letter-spacing: 0.4px;
}

.hero-mini-baslik {
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-mini-baslik a {
    color: var(--renk-yazi);
    text-decoration: none;
}

.hero-mini-baslik a:hover {
    color: var(--renk-birincil);
}

.hero-mini-tarih {
    font-size: 0.72rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-ust-bolum {
        grid-template-columns: 1fr 240px;
        gap: 16px;
    }

    .hero-sol .post-card-buyuk img {
        height: 300px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-ust-bolum {
        grid-template-columns: 1fr;
    }

    .hero-sol .post-card-buyuk img {
        height: 240px;
    }

    .hero-sag {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-sag-baslik {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .hero-sag {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   HERO + SON 5 YAZI BÖLÜMÜ
   ========================================= */

.hero-ust-bolum {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 36px;
    align-items: start;
}

/* Sol hero resim yüksekliği */
.hero-sol .post-card-buyuk img {
    height: 380px;
}

/* Sağ panel */
.hero-sag {
    background: var(--renk-acik-gri);
    border: 1px solid var(--renk-sinir);
    border-radius: 8px;
    overflow: hidden;
}

.hero-sag-baslik {
    background: var(--renk-birincil);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Mini kart */
.hero-mini-kart {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--renk-sinir);
    transition: background var(--gecis);
}

.hero-mini-kart:last-child {
    border-bottom: none;
}

.hero-mini-kart:hover {
    background: var(--renk-arkaplan);
}

.hero-mini-resim {
    flex-shrink: 0;
    width: 70px;
    height: 58px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.hero-mini-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-mini-resim-yok {
    flex-shrink: 0;
    width: 70px;
    height: 58px;
    border-radius: 4px;
    background: var(--renk-sinir);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #aaa;
}

.hero-mini-icerik {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hero-mini-kategori {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--renk-birincil);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.hero-mini-baslik {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-mini-baslik a {
    color: var(--renk-yazi);
    text-decoration: none;
}

.hero-mini-baslik a:hover {
    color: var(--renk-birincil);
}

.hero-mini-tarih {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-ust-bolum {
        grid-template-columns: 1fr 240px;
    }

    .hero-sol .post-card-buyuk img {
        height: 300px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-ust-bolum {
        grid-template-columns: 1fr;
    }

    .hero-sol .post-card-buyuk img {
        height: 240px;
    }
}


/* =========================================
   HERO BÖLÜMÜ (template-parts/hero.php)
   ========================================= */

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 36px;
    align-items: start;
}

/* Sol: Büyük kart */
.hero-kart {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--renk-acik-gri);
}

.hero-kart-resim {
    display: block;
    overflow: hidden;
}

.hero-kart-resim img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-kart-resim:hover img {
    transform: scale(1.03);
}

.hero-kart-resim-yok {
    width: 100%;
    height: 380px;
    background: var(--renk-acik-gri);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--renk-sinir);
}

.hero-kart-bilgi {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-kart-bilgi h2 {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.hero-kart-bilgi h2 a { color: #fff; }
.hero-kart-bilgi h2 a:hover { color: var(--renk-birincil); }

.hero-kart-bilgi .post-meta { color: rgba(255,255,255,0.8); }

/* Sağ: Son yazılar listesi */
.hero-liste {
    background: var(--renk-acik-gri);
    border: 1px solid var(--renk-sinir);
    border-radius: 8px;
    overflow: hidden;
}

.hero-liste-baslik {
    background: var(--renk-birincil);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Mini kart */
.hero-mini-kart {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--renk-sinir);
    transition: background var(--gecis);
}

.hero-mini-kart:last-child { border-bottom: none; }

.hero-mini-kart:hover { background: var(--renk-arkaplan); }

.hero-mini-resim {
    flex-shrink: 0;
    width: 72px;
    height: 58px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}

.hero-mini-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-mini-resim-yok {
    flex-shrink: 0;
    width: 72px;
    height: 58px;
    border-radius: 4px;
    background: var(--renk-sinir);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #aaa;
}

.hero-mini-icerik {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hero-mini-kategori {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--renk-birincil);
    letter-spacing: 0.3px;
    text-decoration: none;
}

.hero-mini-baslik {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-mini-baslik a { color: var(--renk-yazi); text-decoration: none; }
.hero-mini-baslik a:hover { color: var(--renk-birincil); }

.hero-mini-tarih {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr 240px;
    }
    .hero-kart-resim img,
    .hero-kart-resim-yok { height: 300px; }
}

/* Mobil */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    .hero-kart-resim img,
    .hero-kart-resim-yok { height: 240px; }
}
