/*
Theme Name: Modern Haber Teması
Theme URI: https://example.com
Author: Haber Teması
Author URI: https://example.com
Description: Modern, hızlı ve SEO uyumlu Türkçe haber teması
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haber-temasi
Tags: news, magazine, responsive, dark-mode, seo
*/

/* === CSS VARIABLES === */
:root {
    --primary: #E63329;
    --primary-dark: #c0271e;
    --primary-light: #ff4f44;
    --bg: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
    --radius: 6px;
    --font-main: 'Segoe UI', Arial, sans-serif;
    --transition: 0.2s ease;
    --header-height: 60px;
    --breaking-height: 40px;
}

[data-theme="dark"] {
    --bg: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #1e1e1e;
    --text: #f0f0f0;
    --text-muted: #aaaaaa;
    --text-light: #777777;
    --border: #333333;
    --shadow: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.6);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; }

/* === CONTAINER === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-full { width: 100%; padding: 0 16px; }

/* === HEADER === */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow);
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 40px; width: auto; }
.site-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Navigation */
#main-nav { display: flex; align-items: center; }
#main-nav ul { display: flex; gap: 4px; }
#main-nav ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item a {
    background: var(--primary);
    color: #fff;
}
#main-nav ul li ul {
    display: none;
    position: absolute;
    background: var(--bg-card);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 8px 0;
    z-index: 999;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 0;
}
#main-nav ul li { position: relative; }
#main-nav ul li:hover > ul { display: flex; }
#main-nav ul li ul li a { padding: 8px 16px; font-size: 0.85rem; }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 10px; }
.search-toggle, .dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.1rem;
    padding: 6px;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    display: flex;
    align-items: center;
}
.search-toggle:hover, .dark-toggle:hover { background: var(--bg-secondary); color: var(--primary); }

/* Search Box */
.search-box {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    z-index: 999;
}
.search-box.active { display: block; }
.search-box form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}
.search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === BREAKING NEWS BAND === */
#breaking-news {
    background: var(--primary);
    color: #fff;
    height: var(--breaking-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.breaking-label {
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 16px;
}
.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.breaking-ticker-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    font-size: 0.88rem;
    font-weight: 500;
}
.breaking-ticker-inner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.breaking-ticker-inner a:hover { opacity: 0.85; }
@keyframes tickerScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* === ADS === */
.ad-area {
    text-align: center;
    padding: 12px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}
.ad-area-header { margin: 8px 0; }
.ad-area ins, .ad-area iframe { max-width: 100%; }

/* === SECTION HEADINGS === */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}
.section-heading h2 {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-heading a { font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-left: auto; }

/* === HERO SECTION === */
#hero { padding: 20px 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: start;
}

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/9;
    min-height: 300px;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
}

/* Görsel */
.hero-slide-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}
.hero-slide.active .hero-slide-img-wrap img {
    transform: scale(1.04);
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.15) 40%,
        rgba(0,0,0,0.75) 75%,
        rgba(0,0,0,0.92) 100%
    );
}

/* Parlama / shine sweep efekti */
.hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.08) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: shineSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes shineSweep {
    0%   { background-position: 200% 0; }
    50%  { background-position: -50% 0; }
    100% { background-position: 200% 0; }
}

/* Slide bilgi alanı */
.hero-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(24px, 5vw, 48px) clamp(12px, 3vw, 20px) clamp(44px, 8vw, 52px);
    z-index: 3;
    transform: translateY(6px);
    transition: transform 0.6s ease 0.1s;
}
.hero-slide.active .hero-slide-info { transform: translateY(0); }
.hero-slide-top { margin-bottom: 6px; }
.hero-slide-title {
    font-size: clamp(0.88rem, 3vw, 1.45rem);
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-title:hover { color: #ffd0cc; }
.hero-slide-excerpt {
    font-size: clamp(0.72rem, 1.8vw, 0.82rem);
    color: rgba(255,255,255,0.82);
    margin-bottom: 6px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-meta { font-size: 0.72rem; color: rgba(255,255,255,0.65); }

/* Ok butonları */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
    padding: 0;
}
.hero-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}

/* Progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}
.hero-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width linear;
}

/* ---- YAN KÜÇÜK HABERLER ---- */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.hero-small-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    border-left: 3px solid transparent;
}
.hero-small-card:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary);
    transform: translateX(2px);
}
.hero-small-img { display: block; flex-shrink: 0; }
.hero-small-card img { width: 90px; height: 70px; object-fit: cover; display: block; }
.hero-small-card-info { padding: 8px 8px 8px 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.hero-small-card-info h3 { font-size: 0.82rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-small-card-info h3 a:hover { color: var(--primary); }

/* === LATEST NEWS === */
#latest-news {
    padding: 24px 0;
    background: var(--bg-secondary);
}
.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.latest-news-item {
    display: grid;
    grid-template-columns: 44px 100px 1fr;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    text-decoration: none;
}
.latest-news-item:last-child { border-bottom: none; }
.latest-news-item:hover { background: var(--bg-secondary); }
.latest-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.22;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    width: 44px;
}
.latest-thumb { display: block; flex-shrink: 0; }
.latest-thumb img { width: 100px; height: 70px; object-fit: cover; border-radius: var(--radius); display: block; }
.latest-info { min-width: 0; }
.latest-info .cat-badge { margin-bottom: 5px; display: inline-block; }
.latest-info h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.latest-info h3 a { color: var(--text); }
.latest-info h3 a:hover { color: var(--primary); }

/* === CATEGORY SECTIONS === */
.category-section { padding: 24px 0; }
.category-section + .category-section { border-top: 1px solid var(--border); }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 12px; }
.news-card-body .cat-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}
.news-card-body h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.news-card-body .meta { font-size: 0.72rem; color: var(--text-muted); display: flex; gap: 8px; }

/* Featured big card in category */
.cat-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.cat-featured img { aspect-ratio: 4/3; }

/* === SIDEBAR === */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 24px 0; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.widget-title { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; border-bottom: 3px solid var(--primary); padding-bottom: 8px; margin-bottom: 14px; letter-spacing: 0.3px; }
.widget ul li { border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 0.85rem; font-weight: 600; }
.widget ul li:last-child { border-bottom: none; }

/* === SINGLE POST === */
.single-article { max-width: 820px; }
.single-article .post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.single-article .post-thumbnail img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-header { margin-bottom: 20px; }
.entry-header h1 { font-size: 1.8rem; font-weight: 900; line-height: 1.25; margin-bottom: 12px; }
.entry-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); align-items: center; }
.entry-meta .author { font-weight: 700; color: var(--text); }
.entry-content { font-size: 1rem; line-height: 1.8; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { font-weight: 800; margin: 24px 0 12px; }
.entry-content img { border-radius: var(--radius); margin: 16px 0; }
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.05rem;
}

/* Video embed */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 20px 0; }
.video-container iframe, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Schema / Tags */
.post-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { background: var(--bg-secondary); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; transition: background var(--transition), color var(--transition); }
.post-tags a:hover { background: var(--primary); color: #fff; }

/* Related posts */
.related-posts { padding: 24px 0; border-top: 1px solid var(--border); margin-top: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* === CATEGORY PAGE === */
.category-archive { padding: 24px 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* === PAGINATION === */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.pagination .current, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === FOOTER === */
#site-footer { background: #111; color: #ccc; padding: 40px 0 0; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-about .logo-text { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-about p { font-size: 0.85rem; line-height: 1.6; color: #888; }
.footer-widget h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--primary); padding-bottom: 6px; }
.footer-widget ul li { padding: 4px 0; }
.footer-widget ul li a { font-size: 0.83rem; color: #888; transition: color var(--transition); }
.footer-widget ul li a:hover { color: var(--primary); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #222;
    border-radius: 50%;
    font-size: 1rem;
    color: #ccc;
    transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
    border-top: 1px solid #222;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #555;
    flex-wrap: wrap;
    gap: 8px;
}

/* === SEARCH / 404 === */
.search-results-page, .error-404 { padding: 32px 0; }
.error-404 { text-align: center; }
.error-404 h1 { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.error-404 h2 { font-size: 1.5rem; margin: 12px 0; }

/* === UTILITIES === */
.cat-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.3px; }
.meta { font-size: 0.78rem; color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 250px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #main-nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 999; flex-direction: column; padding: 20px; overflow-y: auto; }
    #main-nav.open { display: flex; }
    #main-nav ul { flex-direction: column; gap: 0; width: 100%; }
    #main-nav ul li a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    #main-nav ul li ul { display: none !important; position: static; box-shadow: none; background: var(--bg-secondary); }
    .menu-toggle { display: flex; }

    /* Hero grid mobile: slider tam genişlik, yan haberler alta */
    .hero-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero-slider { aspect-ratio: 16/9; min-height: 220px; }
    .hero-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hero-small-card { grid-template-columns: 80px 1fr; }
    .hero-small-card img { width: 80px; height: 60px; }

    /* Latest news mobile */
    .latest-news-item { grid-template-columns: 36px 80px 1fr; gap: 10px; padding: 10px 12px; }
    .latest-num { font-size: 1.3rem; width: 36px; }
    .latest-thumb img { width: 80px; height: 58px; }

    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-featured { grid-column: span 2; grid-template-columns: 1fr; }
    .content-sidebar-wrap { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .entry-header h1 { font-size: 1.3rem; }
    .related-grid { grid-template-columns: 1fr; }
    .hero-arrow { width: 32px; height: 32px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    /* Hero slider: daha kısa aspect ratio, compact bilgi */
    .hero-slider { aspect-ratio: 3/2; min-height: 200px; }
    .hero-slide-info { padding: 20px 12px 38px; }
    .hero-slide-title { font-size: 0.88rem; -webkit-line-clamp: 2; }
    .hero-slide-excerpt { display: none; }
    .hero-slide-meta { display: none; }
    .hero-dots { bottom: 8px; }
    .hero-dot { width: 6px; height: 6px; }
    .hero-dot.active { width: 16px; }
    /* Yan haberler: yatay scroll yerine 2 kolon */
    .hero-sidebar { grid-template-columns: 1fr 1fr; }
    .hero-small-card { grid-template-columns: 1fr; }
    .hero-small-card img { width: 100%; height: 80px; }
    .hero-small-card-info { padding: 6px 8px 8px; }
    .hero-small-card-info h3 { font-size: 0.75rem; -webkit-line-clamp: 2; }
    /* Latest news */
    .latest-news-item { grid-template-columns: 28px 64px 1fr; gap: 8px; padding: 8px 10px; }
    .latest-thumb img { width: 64px; height: 48px; }
    .latest-num { font-size: 1rem; width: 28px; }
    /* Arrows gizle, swipe ile kullan */
    .hero-arrow { display: none; }
}

@media (max-width: 360px) {
    .hero-slider { aspect-ratio: 1/1; }
    .hero-sidebar { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
    #site-header, #breaking-news, .sidebar, #site-footer, .ad-area { display: none !important; }
    body { background: #fff; color: #000; }
    .entry-content { font-size: 12pt; }
}

/* ============================================================
   KATEGORİ SECTION - RENKLİ + SLIDER
============================================================ */

/* Bölüm wrapper */
.cat-section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.cat-section:first-of-type { border-top: none; }

/* Başlık */
.cat-section .section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--cat-color, var(--primary));
}
.cat-section-label {
    background: var(--cat-color, var(--primary));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.cat-section .section-heading h2 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cat-section .section-heading a {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cat-color, var(--primary));
    white-space: nowrap;
    flex-shrink: 0;
}

/* Ana layout: slider solda, kartlar sağda */
.cat-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: start;
}

/* ---- KATEGORİ SLİDER ---- */
.cat-slider-wrap {
    position: relative;
}
.cat-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    aspect-ratio: 4/3;
}
.cs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.cs-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.cs-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
}
.cs-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.cs-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease;
    display: block;
}
.cs-slide.active .cs-img-wrap img { transform: scale(1.04); }
.cs-img-placeholder { width: 100%; height: 100%; background: var(--bg-secondary); }
.cs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.88) 100%);
}

/* Parlama efekti - kategoriye özel renkli tint */
.cs-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.0) 0%,
        rgba(255,255,255,0.06) 40%,
        rgba(255,255,255,0.0) 60%
    );
    background-size: 200% 200%;
    animation: csShine 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}
@keyframes csShine {
    0%   { background-position: 200% 200%; }
    50%  { background-position: -50% -50%; }
    100% { background-position: 200% 200%; }
}

/* Slide info */
.cs-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 14px 40px;
    z-index: 3;
    transform: translateY(4px);
    transition: transform 0.5s ease 0.1s;
}
.cs-slide.active .cs-info { transform: translateY(0); }
.cs-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 6px 0 4px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-title:hover { opacity: 0.9; }
.cs-excerpt {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.cs-meta { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

/* Oklar */
.cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.cs-arrow:hover { background: var(--cat-color, var(--primary)); }
.cs-prev { left: 8px; }
.cs-next { right: 8px; }

/* Dots */
.cs-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 5px;
}
.cs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), width var(--transition);
}
.cs-dot.active {
    background: var(--cat-color, var(--primary));
    width: 20px;
    border-radius: 4px;
}

/* Progress */
.cs-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}
.cs-progress-bar {
    height: 100%;
    background: var(--cat-color, var(--primary));
    width: 0%;
    transition: width linear;
}

/* ---- KATEGORİ KART GRIDI ---- */
.cat-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-content: start;
}
.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.cat-card:hover {
    box-shadow: var(--shadow-hover);
    border-top-color: var(--cat-color, var(--primary));
    transform: translateY(-2px);
}
.cat-card-img { display: block; }
.cat-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cat-card-body { padding: 10px 12px 12px; }
.cat-card-body .cat-badge { margin-bottom: 5px; display: inline-block; }
.cat-card-body h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.35; margin-bottom: 5px; }
.cat-card-body h3 a:hover { color: var(--cat-color, var(--primary)); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cat-layout { grid-template-columns: 340px 1fr; }
}
@media (max-width: 768px) {
    .cat-layout { grid-template-columns: 1fr; }
    .cat-slider { aspect-ratio: 16/9; }
    .cat-cards-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cat-cards-wrap { grid-template-columns: 1fr; }
    .cat-section { padding: 20px 0; }
}

/* ============================================================
   BRANDED SINGLE / MAKALE DETAY SAYFASI
============================================================ */

/* ---- ARTICLE HERO ---- */
.article-hero {
    position: relative;
    width: 100%;
    max-height: 600px;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* Arka plan fotoğrafı */
.article-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 8s ease;
}
.article-hero:hover .article-hero-img { transform: scale(1.06); }

/* Kategori renginden şeffaf tint katmanı — fotoğraf görünür kalır */
.article-hero-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(var(--article-color-r), var(--article-color-g), var(--article-color-b), 0.22);
    mix-blend-mode: multiply;
}

/* Alttan kararan gradient */
.article-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0)  0%,
        rgba(0,0,0,0.10) 35%,
        rgba(0,0,0,0.55) 65%,
        rgba(0,0,0,0.88) 100%
    );
}

/* Parlama süpürme efekti */
.article-hero-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255,255,255,0.045) 45%,
        transparent 65%
    );
    background-size: 300% 100%;
    animation: heroShine 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShine {
    0%   { background-position: 200% 0; }
    60%  { background-position: -60% 0; }
    100% { background-position: 200% 0; }
}

/* İçerik alanı */
.article-hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    padding-bottom: 36px;
    padding-top: 120px;
}
.article-hero-inner { max-width: 820px; }

/* Kategori badge */
.article-cat-badge {
    display: inline-block;
    background: var(--article-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    transition: opacity .2s;
}
.article-cat-badge:hover { opacity: 0.85; color: #fff; }

/* Başlık */
.article-hero-title {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 900;
    line-height: 1.22;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Özet */
.article-hero-excerpt {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 680px;
}

/* Meta bar */
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}
.ahm-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.ahm-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 2px solid var(--article-color);
    object-fit: cover;
}
.ahm-sep { opacity: 0.4; }
.ahm-date i, .ahm-comments i { margin-right: 4px; }

/* Paylaş butonları */
.ahm-share { display: flex; gap: 6px; margin-left: auto; }
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    transition: transform .2s, opacity .2s;
    color: #fff;
    text-decoration: none;
}
.share-btn:hover { transform: scale(1.12); opacity: 0.9; color: #fff; }
.share-tw { background: #000; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-copy { background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); }

/* ---- MAKALE GÖVDESİ ---- */
.article-body-wrap { padding-top: 32px; padding-bottom: 40px; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

/* Okuma progress bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--article-color);
    z-index: 9999;
    transition: width .1s linear;
    box-shadow: 0 0 8px rgba(var(--article-color-r),var(--article-color-g),var(--article-color-b),0.6);
}

/* Fallback başlık (thumbnail yoksa) */
.entry-header-fallback {
    padding: 20px 0 16px;
    border-bottom: 3px solid var(--article-color);
    margin-bottom: 20px;
}
.entry-header-fallback h1 { font-size: 1.8rem; font-weight: 900; margin: 10px 0; }

/* İçerik prose */
.article-prose {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text);
}
.article-prose p { margin-bottom: 18px; }
.article-prose h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 32px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--article-color);
    color: var(--text);
}
.article-prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text);
}
.article-prose img {
    border-radius: var(--radius);
    margin: 20px 0;
    width: 100%;
    height: auto;
}
.article-prose a {
    color: var(--article-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-prose a:hover { opacity: 0.8; }
.article-prose blockquote {
    margin: 24px 0;
    padding: 16px 20px 16px 20px;
    border-left: 4px solid var(--article-color);
    background: var(--article-color-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--text);
}
.article-prose ul, .article-prose ol {
    padding-left: 22px;
    margin-bottom: 18px;
}
.article-prose li { margin-bottom: 6px; }
.article-prose li::marker { color: var(--article-color); }
.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}
.article-prose th {
    background: var(--article-color);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
}
.article-prose td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}
.article-prose tr:nth-child(even) td { background: var(--article-color-light); }

/* Etiketler */
.article-tags {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.tags-label { color: var(--article-color); font-size: 0.9rem; }
.article-tags a {
    background: var(--article-color-light);
    border: 1px solid var(--article-color-mid);
    color: var(--article-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.article-tags a:hover {
    background: var(--article-color);
    color: #fff;
    border-color: var(--article-color);
}

/* Yazar kutusu */
.author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--article-color-light);
    border: 1px solid var(--article-color-mid);
    border-left: 4px solid var(--article-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 28px 0;
}
.author-box-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 3px solid var(--article-color);
    flex-shrink: 0;
    object-fit: cover;
}
.author-box-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--article-color);
}
.author-box-name { font-size: 1rem; font-weight: 800; margin: 2px 0 6px; }
.author-box-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Reklam */
.article-ad { margin: 24px 0; }

/* ---- İLGİLİ HABERLER ---- */
.related-posts {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.related-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--article-color);
}
.related-label {
    display: inline-block;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.related-heading h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }

.related-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.related-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
    border-top: 3px solid var(--article-color);
}
.related-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.related-card-img {
    display: block;
    position: relative;
    overflow: hidden;
}
.related-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .4s ease; }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.related-card:hover .related-card-overlay { opacity: 1; }
.related-card-body { padding: 10px 12px 12px; }
.related-card-body h3 { font-size: 0.82rem; font-weight: 700; line-height: 1.35; margin: 5px 0 4px; }
.related-card-body h3 a:hover { color: var(--article-color); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr 240px; gap: 24px; }
    .related-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .article-hero { min-height: 280px; max-height: 420px; }
    .article-hero-title { font-size: clamp(1.1rem, 5vw, 1.6rem); }
    .article-hero-excerpt { display: none; }
    .article-hero-content { padding-bottom: 24px; padding-top: 80px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-layout .sidebar { display: none; }
    .ahm-share { display: none; }
    .author-box { flex-direction: column; gap: 10px; }
    .author-box-avatar { width: 52px !important; height: 52px !important; }
    .related-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .article-hero { min-height: 220px; max-height: 340px; }
    .article-hero-title { font-size: 1.1rem; }
    .article-hero-meta { font-size: 0.72rem; gap: 6px; }
    .ahm-date, .ahm-comments { display: none; }
    .article-prose { font-size: 0.96rem; }
    .article-prose h2 { font-size: 1.1rem; }
    .related-grid-4 { grid-template-columns: 1fr; }
}

/* ---- DARK MODE UYUM ---- */
[data-theme="dark"] .article-hero-tint {
    opacity: 0.35;
}
[data-theme="dark"] .article-hero-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.75) 70%,
        rgba(0,0,0,0.96) 100%
    );
}
