/**
 * Frontend Detail Mobile Header CSS
 * Eğitim detay sayfası için özel mobil header stilleri
 */

/* ===================================
   DETAIL PAGE MOBILE HEADER
   =================================== */

/* Mobile ve Desktop header container'lar */
.site-header .detail-mobile-header {
    display: none !important;
}

.site-header .detail-desktop-header {
    display: block !important;
}

/* MOBİL GÖRÜNÜM (≤ 991px) */
@media screen and (max-width: 991px) {
    /* Desktop header'ı gizle */
    .site-header .detail-desktop-header,
    .site-header .desktop-header,
    .site-header .header-top-bar,
    .site-header .header-bottom-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Mobile header'ı göster */
    .site-header .detail-mobile-header,
    .site-header .mobile-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 15px 20px !important;
        background: linear-gradient(135deg, #1c458b 0%, #1c458b 50%, #3461bf 100%) !important;
    }
    
    /* Mobile header bileşenleri */
    .detail-mobile-header .mobile-header-left,
    .detail-mobile-header .mobile-header-right {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .detail-mobile-header .mobile-header-center {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* Mobile logo */
    .detail-mobile-header .mobile-logo img {
        height: 60px !important;
        width: auto !important;
        max-width: 260px !important;
    }
    
    /* Mobile butonlar */
    .detail-mobile-header .mobile-menu-toggle,
    .detail-mobile-header .mobile-cart-button,
    .detail-mobile-header .mobile-profile-button,
    .detail-mobile-header .mobile-login-button {
        width: 42px !important;
        height: 42px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        color: white !important;
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    .detail-mobile-header .mobile-menu-toggle:hover,
    .detail-mobile-header .mobile-cart-button:hover,
    .detail-mobile-header .mobile-profile-button:hover,
    .detail-mobile-header .mobile-login-button:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Mobile cart badge */
    .detail-mobile-header .cart-badge {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        background: linear-gradient(135deg, #dc3545, #c82333) !important;
        color: white !important;
        border-radius: 12px !important;
        padding: 2px 6px !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        min-width: 18px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
    }
    
    /* Mobile user avatar */
    .detail-mobile-header .mobile-user-avatar {
        width: 32px !important;
        height: 32px !important;
        background: linear-gradient(135deg, #fff, #f0f0f0) !important;
        color: #1d458b !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 16px !important;
    }
    
    /* Mobile user dropdown */
    .detail-mobile-header .mobile-user-dropdown {
        position: relative !important;
    }
    
    .detail-mobile-header .mobile-user-menu {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
        min-width: 180px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        z-index: 99999 !important;
        overflow: hidden !important;
    }
    
    .detail-mobile-header .mobile-user-dropdown.active .mobile-user-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .detail-mobile-header .mobile-user-menu a {
        display: block !important;
        padding: 12px 16px !important;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        transition: background 0.2s ease !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .detail-mobile-header .mobile-user-menu a:last-child {
        border-bottom: none !important;
    }
    
    .detail-mobile-header .mobile-user-menu a:hover {
        background: #f8f9fa !important;
    }
    
    .detail-mobile-header .mobile-user-menu a i {
        width: 18px !important;
        margin-right: 10px !important;
        color: #1d458b !important;
    }
    
    .detail-mobile-header .mobile-user-menu .logout-link {
        color: #dc3545 !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    .detail-mobile-header .mobile-user-menu .logout-link i {
        color: #dc3545 !important;
    }
}

/* Küçük tablet (≤ 768px) */
@media screen and (max-width: 768px) {
    .site-header .detail-mobile-header {
        padding: 12px 15px !important;
    }
    
    .detail-mobile-header .mobile-logo img {
        height: 70px !important;
        max-width: 220px !important;
    }
    
    .detail-mobile-header .mobile-menu-toggle,
    .detail-mobile-header .mobile-cart-button,
    .detail-mobile-header .mobile-profile-button,
    .detail-mobile-header .mobile-login-button {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .detail-mobile-header .mobile-user-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
}

/* Mobil telefon (≤ 480px) */
@media screen and (max-width: 480px) {
    .site-header .detail-mobile-header {
        padding: 10px 12px !important;
    }
    
    .detail-mobile-header .mobile-logo img {
        height: 55px !important;
        max-width: 180px !important;
    }
    
    .detail-mobile-header .mobile-menu-toggle,
    .detail-mobile-header .mobile-cart-button,
    .detail-mobile-header .mobile-profile-button,
    .detail-mobile-header .mobile-login-button {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    
    .detail-mobile-header .mobile-header-right {
        gap: 8px !important;
    }
}

/* DESKTOP GÖRÜNÜM (> 991px) */
@media screen and (min-width: 992px) {
    /* Mobile header'ı tamamen gizle */
    .site-header .detail-mobile-header,
    .site-header .mobile-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Desktop header'ı göster */
    .site-header .detail-desktop-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

