/* Header Style Variations */

/* Classic Style - Default */
.header-classic {
    /* Uses existing styles from style.css */
}

/* Centered Style */
.header-centered .navbar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.header-centered .logo {
    order: 1;
}

.header-centered .nav-menu {
    order: 2;
    justify-content: center;
}

.header-centered .hamburger {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .header-centered .navbar {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-centered .nav-menu {
        order: 3;
    }
}

/* Minimal Style */
.header-minimal {
    padding: 0.5rem 0;
}

.header-minimal .navbar {
    min-height: 50px;
}

.header-minimal .logo h2 {
    font-size: 1.2rem;
}

.header-minimal .logo img {
    max-height: 35px !important;
}

.header-minimal .nav-menu {
    gap: 1rem;
}

.header-minimal .nav-menu a {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

@media (max-width: 768px) {
    .header-minimal .hamburger {
        width: 25px;
        height: 20px;
    }
    
    .header-minimal .hamburger span {
        height: 2px;
    }
}

/* Responsive adjustments for all styles - ULTRA COMPACT DESIGN */
@media (max-width: 768px) {
    .header-centered .nav-menu,
    .header-minimal .nav-menu {
        position: fixed;
        right: -100%;
        left: auto;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        width: 270px;
        max-width: 270px;
        height: 100vh;
        text-align: right;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        z-index: 999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.12);
        overflow-y: auto;
    }
    
    .header-centered .nav-menu.active,
    .header-minimal .nav-menu.active {
        right: 0;
    }
    
    .header-centered .nav-menu li,
    .header-minimal .nav-menu li {
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateX(20px);
        animation: slideInRight 0.25s forwards;
    }
    
    .header-centered .nav-menu.active li,
    .header-minimal .nav-menu.active li {
        animation: slideInRight 0.25s forwards;
    }
    
    .header-centered .nav-menu li:nth-child(1),
    .header-minimal .nav-menu li:nth-child(1) { animation-delay: 0.03s; }
    .header-centered .nav-menu li:nth-child(2),
    .header-minimal .nav-menu li:nth-child(2) { animation-delay: 0.05s; }
    .header-centered .nav-menu li:nth-child(3),
    .header-minimal .nav-menu li:nth-child(3) { animation-delay: 0.07s; }
    .header-centered .nav-menu li:nth-child(4),
    .header-minimal .nav-menu li:nth-child(4) { animation-delay: 0.09s; }
    .header-centered .nav-menu li:nth-child(5),
    .header-minimal .nav-menu li:nth-child(5) { animation-delay: 0.11s; }
    .header-centered .nav-menu li:nth-child(6),
    .header-minimal .nav-menu li:nth-child(6) { animation-delay: 0.13s; }
    .header-centered .nav-menu li:nth-child(7),
    .header-minimal .nav-menu li:nth-child(7) { animation-delay: 0.15s; }
    .header-centered .nav-menu li:nth-child(8),
    .header-minimal .nav-menu li:nth-child(8) { animation-delay: 0.17s; }
    
    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .header-centered .nav-menu a,
    .header-minimal .nav-menu a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 1rem;
        color: #1e293b !important;
        font-size: 0.85rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .header-centered .nav-menu a:hover,
    .header-minimal .nav-menu a:hover {
        background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
        padding-right: 1.5rem;
        color: #667eea !important;
    }
    
    .header-centered .nav-menu a::before,
    .header-minimal .nav-menu a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: scaleY(0);
        transition: transform 0.2s ease;
    }
    
    .header-centered .nav-menu a:hover::before,
    .header-minimal .nav-menu a:hover::before {
        transform: scaleY(1);
    }
    
    .menu-icon {
        font-size: 1.2rem;
        min-width: 24px;
        text-align: center;
        filter: grayscale(0.2);
    }
    
    .menu-text {
        flex: 1;
        font-family: 'Cairo', sans-serif;
        letter-spacing: -0.01em;
    }
}

/* Hide icons on desktop */
@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }
}

/* Mobile Only Items */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Mobile Menu Logo - ULTRA COMPACT */
.menu-logo-container {
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-menu-logo {
    max-height: 38px;
    width: auto;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* Login Button - ULTRA COMPACT */
.login-item {
    border-bottom: none !important;
    margin: 0;
    padding: 0.4rem 0.8rem;
    background: #f8fafc;
}

.login-btn-mobile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 8px;
    margin: 0 !important;
    padding: 0.5rem 0.8rem !important;
    border: none !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.login-btn-mobile:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6941a0 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* App Download Section - ULTRA COMPACT */
.app-download-section {
    margin-top: auto;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 2px solid #cbd5e1;
    border-bottom: none !important;
}

.app-download-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.35rem;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.app-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.35rem;
}

.app-store-btn,
.play-store-btn {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    height: 32px;
    background: white !important;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.app-store-btn:hover,
.play-store-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    border-color: #cbd5e1 !important;
}

.app-store-btn img,
.play-store-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-store-btn img {
    transform: scale(1.3);
}

.app-store-btn span,
.play-store-btn span {
    display: none;
}
