/* 
   HABER SITESI - PREMIUM MOBILE STYLES
   Focus: Luxury, Readability, Professionalism
*/

@media screen and (max-width: 768px) {

    /* --- Base --- */
    :root {
        --safe-padding: 16px;
    }

    body {
        font-size: 15px;
        /* Slightly larger for easier mobile reading */
    }

    .container {
        padding: 0 var(--safe-padding);
    }

    /* --- Header Aesthetics --- */
    .header-middle-v3 {
        padding: 12px 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        z-index: 2001 !important;
        /* Ensure it stays above everything */
    }

    .header-middle-v3.sticky-active {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
    }

    .middle-inner-v3 {
        flex-direction: row;
        /* Keep row but prioritize logo */
        justify-content: space-between;
    }

    .logo-v3 .logo-text {
        font-size: 20px;
        /* Refined size */
        letter-spacing: -0.5px;
    }

    .logo-v3 .logo-text::after {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 6px;
    }

    .header-actions-v3 {
        gap: 8px;
    }

    .action-btn-v3 {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        font-size: 16px;
    }

    /* --- Mega Menu Mobile Fixes --- */
    .mega-menu {
        overflow-x: hidden;
    }

    .mega-menu-content {
        padding: 50px 0 !important;
        max-height: 90vh !important;
        overflow-y: auto;
        overflow-x: hidden;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        width: 100% !important;
        left: 0 !important;
        margin: 0 !important;
    }

    .mega-menu-close {
        top: 15px !important;
        right: 15px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        background: #f1f5f9 !important;
        border: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mega-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 20px 40px !important;
        width: 100% !important;
    }

    .mega-col {
        width: 100% !important;
        overflow-x: hidden;
    }

    .mega-title {
        font-size: 15px !important;
        margin-bottom: 15px !important;
        width: 100%;
        display: block !important;
        border-bottom: 2px solid #ef4444 !important;
        padding-bottom: 8px !important;
    }

    .mega-links,
    .app-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Back to 2 col but centered */
        gap: 10px !important;
        width: 100% !important;
    }

    .mega-links li,
    .app-item {
        width: 100% !important;
    }

    .app-item {
        padding: 10px !important;
        font-size: 12px !important;
        justify-content: flex-start !important;
    }

    /* --- Breaking News V4 Mobile Overhaul (2-Tier Design) --- */
    .breaking-news-bar-v4 {
        display: block !important;
        /* Force visible */
        background: #fff;
        padding: 0;
        border-bottom: 3px solid #1e293b;
    }

    .bn-container-v4 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    /* Tier 1: The Label Badge (Static) */
    .bn-label-v4 {
        width: 100%;
        border-radius: 0;
        background: #1e293b;
        color: #fff;
        padding: 6px 15px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        justify-content: center;
        letter-spacing: 1.5px;
        box-shadow: none;
    }

    .bn-label-v4 i {
        font-size: 12px;
    }

    /* Tier 2: The Content (White Background) */
    .bn-ticker-v4 {
        padding: 12px 20px;
        background: #fff;
        min-height: 54px;
        justify-content: center;
        text-align: center;
    }

    .ticker-content-v4 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ticker-card-v4 {
        text-align: center;
    }

    .ticker-card-v4.active {
        display: block;
        animation: mobileLuxurySlide 0.4s ease;
    }

    @keyframes mobileLuxurySlide {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .ticker-card-v4 a {
        font-size: 13.5px;
        font-weight: 700;
        color: #334155;
        line-height: 1.5;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        /* Time above text for better mobile fits */
        gap: 4px;
    }

    .card-time-v4 {
        font-size: 10px;
        padding: 2px 6px;
        background: #f1f5f9;
        color: #64748b;
        margin-right: 0;
        width: max-content;
    }

    .bn-nav-v4 {
        display: none !important;
        /* Navigation hidden for cleaner touch-swipe feel */
    }

    /* --- Layout & Grids --- */
    .main-content {
        padding: 15px 0;
    }

    .section-top-bar {
        margin-bottom: 12px;
    }

    .section-title-minimal {
        font-size: 18px;
    }

    /* Swiper Adjustments */
    .manset-card-v2 {
        aspect-ratio: 16/10;
        /* Wider for easier mobile swiping */
        border-radius: 8px;
    }

    .manset-card-v2 h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    /* News Grids -> Single Column */
    .news-grid-3-v2,
    .news-row-4-v2,
    .cat-grid-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Featured Posts */
    .cat-featured-v3 .featured-title {
        font-size: 14px;
        line-height: 1.3;
    }

    /* List Items */
    .cat-list-v3 .l-title-v3 {
        font-size: 12px;
        font-weight: 700;
    }

    /* Sidebar Transitions */
    .top-reads-list .read-title-v3 {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Dark Cards Optimization */
    .dark-card-img {
        aspect-ratio: 16/10;
        border-radius: 8px;
    }

    .dark-card-title {
        font-size: 13px;
        font-weight: 700;
    }

    /* --- Layered Footer Overhaul (Mobile Only) --- */
    .main-footer-v4 {
        padding: 0 !important;
        background-image: none !important;
        background: #0f172a !important;
        /* Solid dark navy */
    }

    /* Tier 1: Top Category Bar (Light) */
    .footer-mobile-nav-v4 {
        display: block !important;
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-mob-links {
        display: flex;
        gap: 15px;
        list-style: none;
        padding: 0 20px;
        margin: 0;
        width: max-content;
    }

    .footer-mob-links a {
        color: #1e293b;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.5px;
        white-space: nowrap;
        text-transform: uppercase;
    }

    /* Tier 2: Main Footer Content */
    .footer-grid-v4 {
        padding: 40px 20px 20px !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 0 !important;
    }

    .footer-h4-v4 {
        font-size: 13px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
        margin-bottom: 15px !important;
        color: #fff !important;
    }

    .footer-h4-v4::before {
        height: 14px !important;
    }

    /* Tier 3: Bottom Bar */
    .footer-bottom-v4 {
        background: #090e1a;
        /* Darker navy */
        margin-top: 0 !important;
        padding: 25px 20px !important;
        flex-direction: column;
        gap: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .copyright-v4 {
        font-size: 11px !important;
        color: #64748b !important;
    }

    .footer-legal-v4 {
        font-size: 10px !important;
        color: #475569 !important;
    }

    .newsletter-form-v4 {
        max-width: 100% !important;
    }
}