/* =============================================
   ASKIM - Header & Menu CSS
   À inclure sur toutes les pages
   ============================================= */

/* 🔥 HAMBURGER MENU */
.hamburger {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 2000;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* 🔥 SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1999;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
}

.side-menu.active {
    left: 0;
}

.menu-content {
    padding: 100px 40px 40px;
}

.menu-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-logo::after {
    content: '❤️';
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.menu-links a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.menu-links a:hover {
    color: #e74c3c;
    padding-left: 20px;
}

.menu-links a:hover::before {
    width: 15px;
}

.menu-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.menu-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: white !important;
    padding: 1rem 2rem;
    border: none !important;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    text-decoration: none !important;
    display: block;
    text-align: center;
    text-decoration-line: none !important;
    text-underline-offset: unset !important;
    border-bottom: none !important;
}

.menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    text-decoration: none;
}

.menu-cta:focus {
    outline: none;
    text-decoration: none;
}

.menu-cta:active {
    text-decoration: none;
}

.menu-cta:visited {
    text-decoration: none;
    color: white;
}

/* 🔥 OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 🔥 HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 2rem 5%;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    margin-left: 80px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #e74c3c;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 🔥 LANGUAGE SELECTOR */
.language-selector {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.language-selector:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.current-flag {
    font-size: 1.3rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-decoration: none;
}

.language-option:hover {
    background: rgba(231, 76, 60, 0.2);
}

.language-option.active {
    background: rgba(231, 76, 60, 0.3);
}

.language-option span:first-child {
    font-size: 1.5rem;
}

/* 🔥 BOUTONS HEADER */
.btn-login,
.btn-back-home {
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover,
.btn-back-home:hover {
    background: white;
    color: #e74c3c;
    transform: translateY(-2px);
}

/* 🔥 RESPONSIVE */
@media (max-width: 768px) {
    .side-menu {
        width: 280px;
        left: -280px;
    }

    .logo {
        margin-left: 60px;
    }

    .header-right {
        gap: 1rem;
    }

    .btn-login,
    .btn-back-home {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .hamburger {
        top: 1.5rem;
        left: 1.5rem;
    }
}


/* ================================
   NAVBAR MOBILE BLANCHE - ASKIM ROUGE
   À ajouter dans votre fichier CSS existant
   ================================ */

/* Navbar fixe en haut - Mobile uniquement */
.mobile-navbar {
    display: none; /* Cachée par défaut */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    z-index: 200;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid #f0f0f0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
}

/* Bouton menu hamburger à gauche */
.mobile-menu-toggle {
    position: absolute;
    left: 0;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: #666;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mobile-menu-toggle:hover {
    background: #e9ecef;
    border-color: #e74c3c;
    color: #e74c3c;
    transform: scale(1.05);
}

/* Logo Askim au centre - ROUGE */
.navbar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    color: #e74c3c; /* Rouge Askim */
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    color: #c0392b;
    transform: scale(1.05);
}

.navbar-logo::after {
    content: '💕';
    margin-left: 0.3rem;
    font-size: 1.2rem;
    animation: heartBeat 2s infinite;
}

/* Bouton profil à droite */
.navbar-profile {
    position: absolute;
    right: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #e74c3c; /* Bordure rouge Askim */
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.navbar-profile:hover {
    border-color: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

/* Animation du coeur */
@keyframes heartBeat {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.2); 
    }
}

/* ================================
   AJUSTEMENTS RESPONSIVE POUR VOTRE CODE EXISTANT
   ================================ */

@media (max-width: 768px) {
    /* Afficher la navbar sur mobile */
    .mobile-navbar {
        display: block !important;
    }
    
    /* Masquer le bouton menu existant */
    .mobile-menu-btn {
        display: none !important;
    }
    
    /* Ajuster l'app container pour éviter le chevauchement */
    .app-container {
        padding-top: 80px;
    }
    
    /* Ajuster la sidebar pour qu'elle commence sous la navbar */
    .sidebar {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    /* Ajuster le contenu principal */
    .main-content {
        margin-top: 0;
    }
    
    .swipe-mode {
        padding-top: 0;
    }
}

@media (min-width: 769px) {
    /* Cachée complètement sur desktop */
    .mobile-navbar {
        display: none !important;
    }
    
    /* Remettre le comportement normal sur desktop */
    .app-container {
        padding-top: 0;
    }
}

/* ✅ MASQUER la navbar en mode chat */
body.chat-mode .mobile-navbar {
    display: none !important;
}

/* ========================================
   🔥 NAVBAR PWA - SANS CONFLIT AVEC VOTRE CSS EXISTANT
   À ajouter à la fin de votre fichier /assets/css/dating.css
   ======================================== */

/* ✅ AUCUN CONFLIT car :
   - Votre navbar existante : .mobile-navbar (en HAUT)
   - La navbar PWA : .mobile-navbar-pwa (en BAS)
   - Classes complètement différentes
*/

/* Variables CSS pour la navbar PWA */
:root {
    --askim-red: #e74c3c;
    --askim-red-hover: #c0392b;
    --navbar-pwa-height: 80px;
}

/* ========================================
   NAVBAR PWA FIXE EN BAS
   ======================================== */
.mobile-navbar-pwa {
    display: none; /* Masquée par défaut, visible sur mobile */
    position: fixed;
    bottom: 0; /* ✅ EN BAS - pas de conflit avec votre navbar du haut */
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 2000; /* ✅ Z-index plus élevé que votre navbar (200) */
    padding: 0.5rem 0 env(safe-area-inset-bottom);
    /* Protection contre les mouvements */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: auto !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Contenu de la navbar PWA */
.mobile-navbar-pwa .navbar-content {
    /* ✅ IMPORTANT : Classe .navbar-content spécifique à .mobile-navbar-pwa */
    display: grid;
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    align-items: center;
    justify-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0.5rem;
    /* Protection contenu */
    transform: none !important;
    -webkit-transform: none !important;
    position: relative !important;
}

/* Items de navigation PWA */
.navbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    min-height: 60px;
    justify-content: center;
    width: 100%;
}

.navbar-item:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-2px);
}

.navbar-item.active {
    background: rgba(231, 76, 60, 0.15);
}

.navbar-item.active .navbar-icon {
    transform: scale(1.2);
}

.navbar-item.active .navbar-label {
    color: var(--askim-red);
    font-weight: 600;
}

/* Icônes PWA */
.navbar-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

/* Labels PWA */
.navbar-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Bouton central PWA (Swipe/Explorer) */
.navbar-item-center {
    background: linear-gradient(135deg, var(--askim-red) 0%, var(--askim-red-hover) 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar-item-center:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}

.navbar-item-center:active {
    transform: translateY(-1px) scale(0.98);
}

.navbar-icon-center {
    font-size: 1.8rem;
    color: white;
    animation: pulseHeart 2s infinite;
}

/* Animation coeur central */
@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Badges de notifications PWA */
.navbar-badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: var(--askim-red);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
    animation: badgePulse 2s infinite;
}

.navbar-badge.show {
    display: flex;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Timer boost */
.boost-timer {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

/* ========================================
   RESPONSIVE - COEXISTENCE AVEC VOTRE CODE
   ======================================== */

@media (max-width: 768px) {
    /* ✅ Afficher la navbar PWA EN BAS */
    .mobile-navbar-pwa {
        display: block !important;
    }
    
    /* ✅ Votre navbar existante reste EN HAUT */
    .mobile-navbar {
        display: block !important; /* Garde votre navbar du haut */
    }
    
    /* ✅ Ajuster l'app-container pour les DEUX navbars */
    .app-container {
        padding-top: 80px; /* Pour votre navbar du haut */
        padding-bottom: calc(var(--navbar-pwa-height) + env(safe-area-inset-bottom)); /* Pour la navbar PWA du bas */
    }
    
    /* ✅ Ajuster la sidebar */
    .sidebar {
        top: 80px; /* Sous votre navbar du haut */
        height: calc(100vh - 80px - var(--navbar-pwa-height)); /* Entre les deux navbars */
    }
}

@media (min-width: 769px) {
    /* ✅ Sur desktop, masquer la navbar PWA */
    .mobile-navbar-pwa {
        display: none !important;
    }
    
    /* ✅ Votre navbar du haut garde son comportement normal */
}

/* ========================================
   ANIMATIONS ET EFFETS PWA
   ======================================== */

/* Effet de clic */
.navbar-item:active,
.navbar-item-center:active {
    transform: scale(0.95);
}

/* Ondulation au clic */
.navbar-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.navbar-item.ripple::before {
    width: 100px;
    height: 100px;
}

/* ========================================
   ÉTATS SPÉCIAUX
   ======================================== */

/* Masquer la navbar PWA en mode chat (comme votre code existant) */
body.chat-mode .mobile-navbar-pwa {
    display: none !important;
}

/* Masquer pendant les modales importantes */
.premium-modal.show ~ .mobile-navbar-pwa,
.limit-modal.show ~ .mobile-navbar-pwa {
    z-index: 1999; /* En dessous des modales */
}

/* ========================================
   DEBUG - À supprimer en production
   ======================================== */
/* 
.mobile-navbar-pwa {
    border: 2px solid red; /* Pour voir la navbar PWA 
}

.mobile-navbar {
    border: 2px solid blue; /* Pour voir votre navbar existante 
}
*/