/* Mobil Responsive CSS'i dahil et */
@import url('mobile-responsive.css');

/* =====================================================
   KVKK Uyumlu Çerez Onay Sistemi - CSS
   ===================================================== */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a5276 0%, #154360 100%);
    color: #ffffff;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', 'Raleway', sans-serif;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner.hide {
    transform: translateY(100%);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent-text h4 i {
    font-size: 24px;
    color: #f39c12;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #d5dbdb;
}

.cookie-consent-text a {
    color: #5dade2;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #85c1e9;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.cookie-consent-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-btn-settings {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-btn-settings:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-settings-header {
    background: linear-gradient(135deg, #1a5276 0%, #154360 100%);
    color: #ffffff;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cookie-settings-close:hover {
    opacity: 1;
}

.cookie-settings-body {
    padding: 25px;
}

.cookie-settings-intro {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-settings-intro p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.cookie-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: #1a5276;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a5276;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
    background-color: #27ae60;
}

.cookie-toggle input:checked+.cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled+.cookie-toggle-slider {
    background-color: #27ae60;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-category-description {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.cookie-category-required {
    display: inline-block;
    background: #1a5276;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.cookie-settings-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.cookie-settings-footer .cookie-consent-btn {
    min-width: 150px;
    justify-content: center;
}

/* Cookie widget button (after consent) - Erişilebilirlik butonunun altında */
.cookie-widget-btn {
    position: fixed;
    right: 15px;
    top: 135px;
    /* Erişilebilirlik butonunun altında */
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.cookie-widget-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cookie-widget-btn.show {
    display: flex;
}

.cookie-widget-btn span {
    font-size: 9px;
    display: block;
    line-height: 1;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }

    .cookie-settings-content {
        margin: 10px;
        max-height: calc(100vh - 40px);
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-consent-btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-settings-content {
        background: #1e293b;
    }

    .cookie-settings-body {
        color: #e2e8f0;
    }

    .cookie-settings-intro p {
        color: #94a3b8;
    }

    .cookie-category {
        background: #334155;
        border-color: #475569;
    }

    .cookie-category-title {
        color: #5dade2;
    }

    .cookie-category-description {
        color: #94a3b8;
    }

    .cookie-settings-footer {
        background: #1e293b;
        border-color: #475569;
    }
}

/* =====================================================
   MOBİL HABER KARTLARI - MODERN TASARIM
   ===================================================== */

@media (max-width: 768px) {

    /* =============================================
       ÜST KISIM - SLIDER VE MENÜ DÜZELTMELERİ
       ============================================= */

    /* Body ve container boşluklarını agresif sıfırla */
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    /* mobile-responsive.css'deki 10px padding'i ezmek için body ile başlıyoruz */
    body .container-fill,
    body .container-full,
    body .container,
    body .wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Mavi Gradyan Filtresi (Overlay) - Tam Ekran */
    .slider-kutu-bg {
        width: 100% !important;
        position: relative !important;
        /* Kapsayıcıyı relative yapıyoruz */
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 250px !important;
    }

    /* Asıl Gradyan Katmanı - Artık ::before ile videonun üzerinde */
    .slider-kutu-bg::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(to bottom,
                rgba(20, 67, 96, 0.95) 0%,
                rgba(26, 82, 118, 0.5) 20%,
                transparent 50%,
                rgba(26, 82, 118, 0.5) 80%,
                rgba(20, 67, 96, 0.95) 100%) !important;
        z-index: 50 !important;
        /* En üstte durması için */
        pointer-events: none !important;
    }

    .video-bg {
        width: 100% !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .menu-kabuk {
        z-index: 100 !important;
        /* Menü her zaman en üstte olmalı */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Menu kabuğunun sağa/sola taşmasını engelle */
    .menu-kabuk {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Ana wrapper ve kabuklar */
    .add-kabuk,
    .sagmenu-kabuk,
    .footer-kabuk,
    .mobil-menu-kabuk,
    .mobil-haber-kabuk {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ana slider/video alanı tam genişlik */
    .slider-kutu-bg,
    .slider-bg,
    .bg-slider,
    .container-full {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* YouTube Video Container tam ekran */
    .youtube-video-container,
    .video-bg {
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .youtube-video-container iframe,
    .video-bg iframe {
        width: 300% !important;
        height: 300% !important;
        min-width: 300% !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .video-bg video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .swiper-container-bg {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .slider-item-bg {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Video tam genişlik */
    .video-bg {
        width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .video-bg iframe,
    .video-bg video {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Menü alanı tam genişlik */
    .menu-kabuk {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    /* Arama kutusu düzeltme */
    .search-frame {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
        margin: 0 auto !important;
    }

    /* Mobil menü kapsayıcı */
    .mobil-menu-kabuk {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Sağ menü kartı */
    .sagmenu-frame {
        width: calc(100% - 30px) !important;
        margin: 0 15px !important;
        border-radius: 20px !important;
    }

    /* Haber Slider Container */
    .slider-kutu-ID-01 {
        display: block !important;
        /* slider.css'deki display:none'ı override et */
        width: 100% !important;
        padding: 20px 15px !important;
        background: linear-gradient(180deg, rgba(26, 82, 118, 0.95) 0%, rgba(20, 67, 96, 0.98) 100%) !important;
    }

    .swiper-container-ID-01 {
        padding: 10px 0 !important;
    }

    .swiper-container-ID-01 .swiper-slide {
        width: 100% !important;
        padding: 0 5px !important;
    }

    /* Haber Kartı - Modern Stil */
    .slider-item {
        background: #ffffff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        margin: 5px !important;
    }

    .slider-item a {
        display: block !important;
        text-decoration: none !important;
    }

    /* Haber Resmi */
    .slider-item-img {
        position: relative !important;
        height: 200px !important;
        background-size: cover !important;
        background-position: center !important;
        overflow: hidden !important;
    }

    .slider-item-img::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 80px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent) !important;
    }

    .slider-item-img img {
        display: none !important;
    }

    /* Haber Metin Alanı */
    .slider-item-text {
        padding: 18px !important;
        background: #fff !important;
    }

    .slider-item-text h4 {
        color: #1a5276 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .slider-item-text p {
        color: #666 !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Slider Okları */
    .swiper-button-next-ID-01,
    .swiper-button-prev-ID-01 {
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .swiper-button-next-ID-01 span,
    .swiper-button-prev-ID-01 span {
        color: #1a5276 !important;
        font-size: 20px !important;
    }

    /* Pagination */
    .pagination-ID-01 {
        text-align: center !important;
        padding: 15px 0 5px !important;
    }

    .pagination-ID-01 .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        opacity: 1 !important;
        margin: 0 5px !important;
    }

    .pagination-ID-01 .swiper-pagination-bullet-active {
        background: #fff !important;
        width: 28px !important;
        border-radius: 5px !important;
    }

    /* TÜM HABERLER Butonu */
    .haber-devam {
        text-align: center !important;
        padding: 20px 15px 10px !important;
    }

    .haber-devam a {
        display: inline-block !important;
        padding: 14px 35px !important;
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
    }

    /* Başkan Bölümü */
    .left-add-kabuk {
        width: 100% !important;
        text-align: center !important;
        padding: 20px 10px !important;
    }

    .baskan-web-foto {
        height: 220px !important;
        margin: 0 auto 15px !important;
    }

    /* Sağ boşluk gizle */
    .right-add-kabuk {
        display: none !important;
    }

    /* Footer bilgi */
    .info {
        font-size: 11px !important;
        padding: 10px !important;
        text-align: center !important;
    }

    /* =============================================
       MOBİL HABER KARTLARI (Üstteki Haberler)
       ============================================= */

    .mobil-haber-kabuk {
        padding: 15px !important;
        background: linear-gradient(180deg, rgba(26, 82, 118, 0.95) 0%, rgba(20, 67, 96, 0.98) 100%) !important;
    }

    .mobil-haber-astar {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .mobil-haber-item {
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
    }

    .mobil-haber-item>a,
    .mobil-haber-item a {
        display: block !important;
        text-decoration: none !important;
    }

    /* Haber Resmi - Tam Genişlik */
    .mobil-haber-item-img {
        display: block !important;
        width: 100% !important;
        height: 200px !important;
        float: none !important;
        background-size: cover !important;
        background-position: center !important;
        position: relative !important;
    }

    .mobil-haber-item-img::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent) !important;
    }

    .mobil-haber-item-img img {
        display: none !important;
    }

    /* Haber Metin Alanı */
    .mobil-haber-item-text {
        display: block !important;
        width: 100% !important;
        float: none !important;
        padding: 18px !important;
        background: #fff !important;
    }

    .mobil-haber-item-text h4 {
        color: #1a5276 !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        margin: 0 0 10px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .mobil-haber-item-text p {
        color: #666 !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* TÜM HABERLER Butonu - Üstteki */
    .haber-tumu {
        text-align: center !important;
        padding: 20px 15px !important;
    }

    .haber-tumu a {
        display: inline-block !important;
        padding: 14px 40px !important;
        background: linear-gradient(135deg, #f39c12, #e67e22) !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4) !important;
    }

    /* Alt slider gizle - üstteki haberler yeterli */
    .footer-kabuk .slider-kutu-ID-01 {
        display: none !important;
    }
}