/*
Theme Name: Devreyakan Haber Teması
Theme URI: https://example.com/
Author: Gemini CLI
Author URI: https://example.com/
Description: Aşırı hızlı, SEO uyumlu, minimalist ve modern haber teması. Sıfır harici bağımlılık.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: devreyakannews
*/

:root {
    --primary-color: #1ebd9d;
    --primary-hover: #179b81;
    --text-color: #e4e6eb;
    --light-text: #b0b3b8;
    --bg-color: #18191a;
    --white: #242526;
    --border-color: #3a3b3c;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

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

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

/* --- Header --- */
.site-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--text-color);
}

.site-title a span {
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* --- Haber Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.news-card .post-thumbnail {
    height: 220px;
    overflow: hidden;
    display: block;
    background: #333;
}

.news-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.news-content h2 a {
    color: var(--text-color);
}

.news-content h2 a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 12px;
    font-weight: 500;
}

.entry-excerpt {
    font-size: 0.95rem;
    color: var(--light-text);
    flex-grow: 1;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Tekil Yazı Düzeni (Single Layout) --- */
.single-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

/* --- Tekil Yazı (Single Post) --- */
.single-post {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.single-post .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.single-post .entry-title {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
}

.single-post .post-thumbnail-wrapper {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post .entry-content {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 25px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin: 40px 0 20px;
    color: var(--text-color);
}

/* --- Reklam Alanı Placeholder --- */
.ad-placeholder {
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    padding: 20px;
}

/* --- Sayfalama --- */
.pagination {
    text-align: center;
    margin-bottom: 50px;
}

.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background: #000;
    color: #bbb;
    padding: 50px 0 30px;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.site-footer a {
    color: var(--text-color);
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* --- News Ticker --- */
.news-ticker-wrap {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    overflow: hidden;
    margin-bottom: 20px;
}

.ticker-flex {
    display: flex;
    align-items: center;
}

.ticker-label {
    font-weight: bold;
    text-transform: uppercase;
    background: #000;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 20px;
    white-space: nowrap;
    z-index: 2;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 40px;
}

.ticker-item a {
    color: #fff;
    font-weight: 500;
}

.ticker-item a:hover {
    text-decoration: underline;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Categories Bar --- */
.categories-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.cat-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 15px 0;
}

.cat-list li a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.cat-list li a:hover {
    color: var(--primary-color);
}

/* --- Comments Area --- */
.comments-area {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-body {
    display: flex;
    gap: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-content p {
    margin-top: 5px;
    font-size: 0.95rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
}

.comment-form .submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.comment-form .submit:hover {
    background: var(--primary-hover);
}

/* --- Hero Section --- */
.main-content-area {
    padding-top: 10px;
}

.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-main,
.hero-sub {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border-color);
    height: 100%;
}

.hero-main {
    min-height: 420px;
}

.hero-sub {
    flex: 1;
    min-height: 200px;
}

.hero-main img,
.hero-sub img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-main:hover img,
.hero-sub:hover img {
    transform: scale(1.05);
}

.placeholder-img {
    background: #2a2a2a;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    pointer-events: none;
}

.hero-sub .hero-overlay {
    padding: 30px 15px 15px;
}

.hero-cat {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
}

.hero-overlay h2 {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-sub .hero-overlay h2 {
    font-size: 1.2rem;
}

.hero-meta {
    font-size: 0.85rem;
    color: #ddd;
}

/* --- Section Title --- */
.section-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    text-transform: uppercase;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* --- List View (Replaces Grid for Recent News) --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.list-card {
    display: flex;
    gap: 25px;
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.list-thumbnail {
    flex-shrink: 0;
    width: 260px;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
}

.list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-card:hover .list-thumbnail img {
    transform: scale(1.05);
}

.list-content {
    flex-grow: 1;
}

.list-content h2 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
}

.list-content h2 a {
    color: var(--text-color);
}

.list-content h2 a:hover {
    color: var(--primary-color);
}

.cat-link {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .single-layout {
        flex-direction: column;
    }

    .single-sidebar {
        width: 100%;
        position: static;
    }

    .ad-placeholder {
        min-height: 250px;
    }

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

    .hero-main {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .site-header {
        position: relative;
        padding: 15px 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .single-post {
        padding: 15px 12px;
    }

    .single-post .entry-title {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .ticker-flex {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .ticker-label {
        margin-right: 0;
    }

    .list-card {
        flex-direction: column;
        padding: 15px;
        align-items: stretch;
    }

    .list-thumbnail {
        width: 100%;
        height: 200px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
    }
}