:root {
    --bg-dark: #f3f4f6;
    --bg-surface: #fdfdfd;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-glow: rgba(239, 68, 68, 0.1);
    
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.dark-mode {
    --bg-dark: #0a0a0f;
    --bg-surface: #111118;
    --bg-card: #15151e;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --text-primary: #f8fafc;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-glow: rgba(239, 68, 68, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header / Navbar */
.site-header {
    background: rgba(var(--bg-surface-rgb, 255, 255, 255), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
body.dark-mode .site-header {
    background: rgba(17, 17, 24, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-text span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
    letter-spacing: -0.2px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-red);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    margin-left: 12px;
}

.search-bar input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 150px;
    transition: width 0.3s;
}

.search-bar input:focus {
    width: 200px;
}

.search-bar svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

/* ======== HERO SLIDER ======== */
.hero-slider-wrap {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 480px; 
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.02);
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: -1;
}

.slide-content {
    padding: 40px;
    width: 100%;
    max-width: 800px;
    color: #fff; /* Always white due to extreme dark gradient */
}

.slide-content .badge {
    background: var(--accent-red);
    color: #fff;
    margin-bottom: 16px;
    border: none;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
}

.slide-title a:hover {
    text-decoration: underline;
}

.slide-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    bottom: 24px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--accent-red);
    transform: scale(1.3);
}

@media(max-width: 768px) {
    .hero-slider { height: 380px; }
    .slide-title { font-size: 2rem; }
    .slide-content { padding: 24px; }
    .slider-nav { right: 24px; bottom: 16px; }
}

/* Common Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-sm {
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

/* Kayan Haber Şeridi (Ticker) */
.news-ticker {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    height: 40px;
    overflow: hidden;
}

.ticker-label {
    background: var(--text-primary);
    color: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    white-space: nowrap;
    z-index: 10;
}

.ticker-scroll {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pulse {
    width: 6px; height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulsing 2s infinite;
}

@keyframes ticker {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulsing {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Home Hero Article */
.hero-article {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -1px;
}

.hero-title a { transition: color 0.2s; }
.hero-title a:hover { color: var(--accent-red); }

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 600px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-meta strong {
    color: var(--text-primary);
}

/* Home Grid Section */
.latest-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.section-header {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

/* Ana Sayfa Düzenleri (Magazine Layout) */
.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.featured-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.featured-main .card-image {
    aspect-ratio: 16/10;
}

.featured-main .card-title {
    font-size: 2.2rem;
    line-height: 1.2;
}

.featured-sub {
    display: flex;
    flex-direction: column;
}

.featured-sub .card-image {
    aspect-ratio: 16/9;
}

.featured-sub .card-title {
    font-size: 1.3rem;
}

/* Tüm Haberler Grid (Standart) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e2e8f0;
    border-bottom: 1px solid var(--border-color);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-content {
    padding: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.card-title a { transition: color 0.2s; }
.card-title a:hover { color: var(--accent-red); }

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-sm { font-size: 0.75rem; }

/* Article Reader Template */
.reader-hero {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 24px;
    text-align: center;
}

.reader-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.reader-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.reader-hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    aspect-ratio: 21/9;
    object-fit: cover;
    margin: 0 auto 60px;
    display: block;
    border-radius: 12px;
}

/* Markdown Contextual Render */
.article-content {
    max-width: 720px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
}

.article-content p {
    margin-bottom: 28px;
}

.article-content h2, .article-content h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-content h2 { font-size: 2.2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 12px;}
.article-content h3 { font-size: 1.7rem; }

.article-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover { color: var(--accent-red-hover); }

.article-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding-left: 20px;
    background: var(--bg-surface);
    padding: 20px 24px;
    margin: 32px 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 4px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.article-content code {
    font-family: var(--font-mono);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #db2777;
}

.article-content pre {
    background: #0f172a;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.article-content ul, .article-content ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* YENİ EKLENTİLER */

/* 1. Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    margin-left: 16px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s;
}
.theme-toggle:hover {
    border-color: var(--accent-red);
}

/* 2. Progress Bar */
.progress-container {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99;
}
.progress-bar {
    height: 100%;
    background: var(--accent-red);
    width: 0%;
    transition: width 0.1s ease;
}

/* 3. Newsletter Box */
.newsletter-box {
    background: var(--bg-card);
    border: 1px solid var(--accent-red);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    box-shadow: 0 10px 30px var(--accent-glow);
}
.newsletter-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.newsletter-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
}
.newsletter-form button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: var(--accent-red-hover);
}

/* 4. Yazar Bio ve Sosyal Medya */
.article-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto 60px;
    padding: 32px 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.author-bio {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 16px;
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid var(--accent-red);
    object-fit: cover;
}
.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 1.1rem;
}
.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.share-buttons span {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.2s;
    font-weight: bold;
    font-size: 0.9rem;
}
.share-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
}

/* Responsive Newsletter */
@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
}

@media (max-width: 900px) {
    .featured-news {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .featured-main {
        grid-column: 1;
        grid-row: auto;
    }
    .search-bar { display: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .reader-title { font-size: 2.4rem; }
    .article-content { font-size: 1.05rem; }
}

/* Mobil Uyum İnce Ayarları */
@media(max-width: 768px) {
    .nav-container { padding: 0 12px; height: auto; flex-direction: column; padding-bottom: 12px; }
    .nav-links { flex-wrap: wrap; justify-content: center; margin-top: 12px; }
    .search-bar { width: 100%; margin-left: 0; margin-top: 8px; justify-content: center; }
    .search-bar input { width: 100%; text-align: center; }
    .featured-news { grid-template-columns: 1fr; grid-template-rows: auto; }
    .featured-main { grid-column: 1 / 2; grid-row: auto; }
    .card-title { font-size: 1.4rem; }
    .reader-title { font-size: 2.2rem; }
    .top-bar { font-size: 0.75rem; }
}
