/* ============================================
   Citizens Justice Party of Kenya — Shared CSS
   Modern, Clean, Rich Blue Theme
   ============================================ */

/* --- Base Resets --- */
* { -webkit-tap-highlight-color: transparent; }

html { 
    font-size: 16px; 
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    /* Rich, vibrant blue (not too deep, matches party colors) */
    background-color: #112d7a; 
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-dark {
    background: rgba(10, 25, 75, 0.85); /* Darker blue for nav/footer */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 244, 79, 0.4);
    transform: translateY(-4px);
}

.glass-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    min-height: 48px; 
    font-size: 16px; 
}

.glass-input:focus {
    outline: none;
    border-color: #FFF44F;
    box-shadow: 0 0 15px rgba(255, 244, 79, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* --- Navigation Pills --- */
.nav-link-bordered {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.nav-link-bordered:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 244, 79, 0.5);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
.animate-bounce-slow { animation: bounce-slow 2s infinite ease-in-out; }

/* --- Hero Overlay (Blends with new blue bg) --- */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(17, 45, 122, 0.4), rgba(17, 45, 122, 0.95));
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1955; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #FFF44F; }

/* --- Desktop Dropdown --- */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.dropdown-menu.dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================================
   MOBILE SPECIFIC CLEANUPS (Floating Side Drawer)
   ============================================================ */
@media (max-width: 1023px) {
    
    /* BULLETPROOF MOBILE MENU DRAWER */
    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #0a1955 !important; /* Darker blue for contrast */
        z-index: 9999 !important;
        
        /* Hidden state */
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5) !important;
    }

    /* Open state */
    #mobile-menu.open {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Hide desktop dropdown menus on mobile */
    .dropdown-menu { 
        display: none !important; 
    }
}