/* Blue & White Theme Overrides */

:root {
    --primary-red: #3b82f6; /* Changed from red to blue, kept var name for compatibility */
    --primary-red-hover: #2563eb;
    --dark-gray: #1e3a8a; /* Dark blue for headers */
    --light-bg: #f8fafc; /* Very light slate/blue for body */
    --border-color: #e2e8f0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--light-bg);
}

/* Header & Top Bar */
.top-bar {
    background: var(--dark-gray);
    color: #fff;
}
.top-bar a:hover {
    color: #bfdbfe;
}

.logo {
    background: var(--primary-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo:hover {
    background: var(--primary-red-hover);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    background: var(--primary-red);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.nav-menu .nav-link:hover {
    background: var(--primary-red-hover);
    color: #fff !important;
}
.header-main {
    border-bottom: 3px solid var(--primary-red);
}

/* Son Dakika Ticker */
.son-dakika {
    background: var(--primary-red);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Container & Layout tweaks */
.container.home-wrap {
    max-width: 1140px;
}

/* Hero Slider (16:9 ratio approximately) */
.hero-slider.haber-slider-container {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-slide {
    position: relative;
}
.hero-slide .hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30,58,138,0.9) 0%, rgba(30,58,138,0.5) 60%, rgba(0,0,0,0) 100%);
    padding: 30px 20px 40px;
    color: #fff;
}
.slider-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.slider-kategori {
    background: var(--primary-red);
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

/* Slider Dots / Numbers at bottom */
.slider-dots-wrapper-outer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30,58,138,0.7);
    backdrop-filter: blur(2px);
}
.slider-dots {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.slider-dots::-webkit-scrollbar {
    display: none;
}
.slider-dot {
    flex: 1;
    text-align: center;
    color: #fff;
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}
.slider-dot:hover, .slider-dot.active {
    background: var(--primary-red);
    color: #fff;
}

/* Tabs right next to slider */
.side-box {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.side-box-head {
    background: var(--dark-gray);
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 15px;
}
.tabbar {
    display: flex;
    background: #f1f5f9;
}
.tabbtn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-weight: bold;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}
.tabbtn.active {
    background: #fff;
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}
.tabbtn:hover {
    color: var(--primary-red);
}
.tabpanes {
    flex: 1;
    background: #fff;
    padding: 0;
}
.tabpane {
    display: none;
}
.tabpane.active {
    display: block;
}
.mini-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.2s;
}
.mini-item:last-child {
    border-bottom: none;
}
.mini-item:hover {
    background: #f8fafc;
}
.mini-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.mini-item:hover .mini-title {
    color: var(--primary-red);
}

/* Top Cards (4 in a row) */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.mini-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.mini-card .mini-thumb {
    position: relative;
    padding-top: 66.66%; /* 3:2 ratio */
    overflow: hidden;
}
.mini-card .mini-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mini-card:hover .mini-thumb img {
    transform: scale(1.05);
}
.mini-card .mini-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.mini-card:hover .mini-title {
    color: var(--primary-red);
}

/* Standard News Cards (Clean White Look) */
.col-md-6 > .haber-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.col-md-6 > .haber-item > img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.col-md-6 > .haber-item:hover > img {
    transform: scale(1.05);
}
.col-md-6 > .haber-item > .haber-item-body {
    position: static;
    background: #fff;
    padding: 15px;
    color: #1e293b;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.col-md-6 > .haber-item h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.col-md-6 > .haber-item h3 a {
    color: var(--dark-gray);
    text-shadow: none;
}
.col-md-6 > .haber-item:hover h3 a {
    color: var(--primary-red);
}
.col-md-6 > .haber-item .ozet,
.col-md-6 > .haber-item .meta span i {
    display: none; 
}
.col-md-6 > .haber-item .meta {
    margin-top: auto;
    color: #64748b;
    font-size: 11px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.col-md-6 > .haber-item .kategori-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    box-shadow: none;
    z-index: 2;
}

/* Section Titles */
.section-title {
    border-bottom: 2px solid var(--primary-red);
    color: var(--dark-gray);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}
.section-title i {
    color: var(--primary-red);
    margin-right: 8px;
}

/* Sidebar Box styles */
.sidebar-box h4 {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
}
.kategori-list a:hover {
    color: var(--primary-red);
}
.kategori-list a:hover i {
    color: var(--primary-red);
}

/* Haber Detail page specific overrides if needed */
.haber-baslik {
    font-weight: 800;
    color: var(--dark-gray);
}

/* Ads Styles */
.reklam-alani {
    border: 1px solid var(--border-color);
    background: #f8fafc;
}
.reklam-alani:not(:empty) {
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Haber7 Style Prayer Widget */
.prayer-widget-h7 {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #1b7a43;
    border-radius: 40px;
    padding: 0 !important;
    overflow: hidden;
    margin-right: 0.5rem !important;
    flex-shrink: 0;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}
.prayer-h7-left {
    display: flex;
    align-items: center;
    background: #e8f5e9;
    padding: 6px 12px;
    height: 100%;
}
.prayer-h7-left i {
    color: #1b7a43;
    font-size: 14px;
    margin-right: 6px;
}
.prayer-h7-left .prayer-countdown {
    color: #1b7a43;
    font-size: 14px;
    font-weight: 800;
}
.prayer-h7-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 12px;
}
.prayer-h7-right .prayer-label,
.prayer-h7-right .prayer-static {
    color: #1b7a43;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

/* Haber7 Style Piyasa Widget */
.h7-piyasa-bar {
    display: flex;
    align-items: stretch;
    background: #3b82f6; /* Blue background */
    height: 40px;
    margin-left: 15px;
}
.h7-piyasa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    padding: 0 15px;
    font-size: 18px;
}
.h7-piyasa-items {
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
}
.h7-piyasa-item {
    display: flex;
    align-items: center;
    background: #fff;
    color: #333;
    height: 28px;
    padding: 0 8px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 800;
}
.h7-piyasa-item .h7-piyasa-label {
    margin-right: 6px;
    color: #1e3a8a;
}
.h7-piyasa-item .h7-piyasa-value {
    color: #333;
    margin-right: 4px;
}
.h7-piyasa-item .h7-piyasa-icon {
    font-size: 10px;
}
.h7-piyasa-item .h7-piyasa-icon.up {
    color: #10b981; /* Green */
}
.h7-piyasa-item .h7-piyasa-icon.down {
    color: #ef4444; /* Red */
}
.h7-piyasa-item .h7-piyasa-icon-dolar {
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 6px;
}

/* Özel Haber Detay Layout Düzenlemesi (Haber7 tarzı tok görünüm) */
@media (min-width: 992px) {
    .container.main-content {
        max-width: 1160px;
    }
    .container.main-content > .row {
        display: flex;
        flex-wrap: nowrap;
        margin-left: -15px;
        margin-right: -15px;
    }
    .container.main-content > .row > main {
        width: 820px;
        flex: 0 0 820px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .container.main-content > .row > aside {
        width: 340px;
        flex: 0 0 340px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Haber İçeriğindeki Resimleri Düzenleme */
.haber-icerik img, .haber-icerik figure img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.haber-icerik figure {
    margin: 20px 0;
}
.haber-icerik iframe {
    max-width: 100%;
}
