/*
Theme Name: Haber Ortası Pro
Theme URI: https://www.haberortasi.com
Author: OpenAI
Author URI: https://openai.com
Description: Haber Ortası için profesyonel, özelleştirilebilir WordPress haber teması.
Version: 2.1
Text Domain: haberortasi-pro
*/

:root {
    --primary: #12b3b6;
    --primary-dark: #0b8f92;
    --secondary: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f5f7fa;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: 0.25s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { width: min(100% - 24px, var(--container)); margin: 0 auto; }

.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
.topbar {
    background: var(--secondary);
    color: #dbe4ee;
    font-size: 13px;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.site-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}
.site-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.site-description { color: var(--muted); font-size: 14px; margin-top: 4px; }
.main-nav {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--secondary);
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { background: var(--primary); color: var(--white); }

.breaking-strip {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin: 24px 0;
}
.breaking-strip-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 5px solid var(--primary);
    color: var(--secondary);
}
.breaking-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.breaking-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}
.breaking-item img { width: 100%; height: 110px; object-fit: cover; }
.breaking-item-body { padding: 12px; }
.breaking-item-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.breaking-item-title a:hover { color: var(--primary); }

.hero-section { margin: 0 0 30px; }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #000;
    min-height: 460px;
}
.hero-slide { display: none; position: relative; height: 460px; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.15));
}
.hero-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 58px;
    color: var(--white);
    z-index: 2;
}
.hero-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.hero-title { font-size: 32px; line-height: 1.2; font-weight: 800; margin-bottom: 10px; }
.hero-title a:hover { color: #bff9fb; }
.hero-excerpt { font-size: 15px; color: #e5e7eb; max-width: 85%; }
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.88);
    color: var(--secondary);
    font-size: 22px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.hero-arrow:hover { background: var(--primary); color: var(--white); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.78);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.hero-dot.active, .hero-dot:hover { background: var(--primary); color: var(--white); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hero-side-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.hero-side-thumb img { width: 100%; height: 140px; object-fit: cover; }
.hero-side-body { padding: 16px; }
.hero-side-title { font-size: 18px; font-weight: 800; line-height: 1.35; }
.hero-side-title a:hover { color: var(--primary); }

.site-main { padding-bottom: 40px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.section-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 24px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 5px solid var(--primary);
    color: var(--secondary);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}
.news-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.news-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    min-height: 54px;
}
.news-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title a:hover { color: var(--primary); }
.news-excerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 67px;
}

.masonry-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.masonry-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.compact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compact-item { display: flex; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.compact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.compact-item img { width: 130px; min-width: 130px; height: 92px; object-fit: cover; border-radius: 10px; }
.compact-item-title { font-size: 16px; font-weight: 800; line-height: 1.35; }
.compact-item-title a:hover { color: var(--primary); }
.big-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.author-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.author-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.author-card img { width: 100%; height: 220px; object-fit: cover; }
.author-card-body { padding: 14px; }
.author-card-title { font-size: 18px; font-weight: 800; line-height: 1.35; }
.author-card-title a:hover { color: var(--primary); }

.article-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}
.article-thumbnail { margin-bottom: 20px; overflow: hidden; border-radius: 12px; }
.article-thumbnail img { width: 100%; max-height: 520px; object-fit: cover; }
.article-title { font-size: 34px; line-height: 1.2; font-weight: 800; margin-bottom: 12px; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.entry-content p { margin-bottom: 18px; }
.entry-content img { margin: 18px 0; border-radius: 10px; }

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
}
.sidebar-widget h3,
.sidebar-widget .widget-title {
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 800;
    color: var(--secondary);
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.sidebar-post { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sidebar-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.sidebar-post-thumb { width: 95px; min-width: 95px; }
.sidebar-post-thumb img { width: 95px; height: 72px; object-fit: cover; border-radius: 8px; }
.sidebar-post-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.sidebar-post-title a:hover { color: var(--primary); }

.site-footer { background: var(--secondary); color: #dbe4ee; margin-top: 40px; }
.footer-top { padding: 40px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-title { color: var(--white); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer-widget-title { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #7df1f3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 14px 0; font-size: 14px; color: #b9c4cf; }

.pagination-wrap { margin-top: 12px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--secondary);
    font-weight: 700;
}
.nav-links .current, .nav-links .page-numbers:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.widget ul li { margin-bottom: 10px; }
.widget a:hover { color: var(--primary); }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; }
.search-submit {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 1200px) {
    .breaking-list, .masonry-5 { grid-template-columns: repeat(3, 1fr); }
    .masonry-4, .author-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: unset; }
    .hero-slider, .hero-slide { min-height: 420px; height: 420px; }
}

@media (max-width: 768px) {
    .site-title { font-size: 28px; }
    .hero-slider, .hero-slide { min-height: 360px; height: 360px; }
    .hero-title { font-size: 24px; }
    .hero-excerpt { max-width: 100%; font-size: 14px; }
    .news-grid, .hero-side, .compact-list, .big-two, .author-list, .masonry-5, .masonry-4, .breaking-list { grid-template-columns: 1fr; }
    .news-title { min-height: auto; }
    .news-excerpt { min-height: auto; }
    .hero-side-card { min-height: auto; }
    .main-nav ul { gap: 4px; }
    .main-nav a { padding: 8px 12px; font-size: 14px; }
    .compact-item { flex-direction: column; }
    .compact-item img { width: 100%; height: 180px; }
    .article-title { font-size: 26px; }
}

@media (max-width: 480px) {
    .hero-content { left: 18px; right: 18px; bottom: 58px; }
    .hero-title { font-size: 21px; }
    .hero-dot { width: 30px; height: 30px; font-size: 12px; }
    .hero-arrow { width: 36px; height: 36px; }
    .news-thumb img { height: 100%; }
}


/* v2.1 - üst 5'li blok daha sade */
.breaking-strip-minimal {
    padding: 10px 0 4px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.breaking-strip-minimal .breaking-list {
    gap: 18px;
}

.breaking-strip-minimal .breaking-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.breaking-strip-minimal .breaking-item a {
    display: block;
}

.breaking-strip-minimal .breaking-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.breaking-strip-minimal .breaking-item-body {
    padding: 10px 2px 0;
}

.breaking-strip-minimal .breaking-item-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.breaking-strip-minimal .breaking-item-title a:hover {
    color: var(--primary);
}

@media (max-width: 1200px) {
    .breaking-strip-minimal .breaking-item img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .breaking-strip-minimal {
        padding-top: 4px;
    }

    .breaking-strip-minimal .breaking-item img {
        height: 190px;
    }

    .breaking-strip-minimal .breaking-item-body {
        padding-top: 8px;
    }
}
