/* Style du menu de navigation YourTripList */

/* Variables CSS pour le mode sombre */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #eeeeee;
    --shadow-color: rgba(0,0,0,0.06);
    --shadow-hover: rgba(0,0,0,0.1);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #333333;
    --shadow-color: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.5);
}

/* Toggle dark mode button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
    display: inline-block;
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark-mode-toggle .fa-moon {
    display: inline-block;
}

/* Animation fade-in au scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    width: 220px;
    min-width: 220px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

.nav-logo {
    text-align: center;
    padding: 15px 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.nav-logo img {
    height: 45px;
    margin-bottom: 8px;
    filter: brightness(1.1);
}

.nav-logo span {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-menu {
    flex: 1;
    padding: 0 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(5px);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

.nav-link.active::before {
    display: none;
}

.nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-bottom {
    padding: 20px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.nav-bottom .nav-link {
    margin-bottom: 0;
}

.nav-bottom .nav-link i {
    color: #ff6b6b;
}

.nav-bottom .nav-link:hover i,
.nav-bottom .nav-link.active i {
    color: #fff;
}

/* Responsive - Mobile uniquement (téléphones) */
@media (max-width: 480px) {
    .nav-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        height: auto;
        flex-direction: row;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    }

    .nav-logo {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 8px 5px;
        width: 100%;
    }

    .nav-link {
        flex-direction: column;
        gap: 4px;
        padding: 10px 8px;
        margin: 0;
        font-size: 10px;
        border-radius: 8px;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        transform: none;
    }

    .nav-link i {
        font-size: 20px;
        width: auto;
    }

    .nav-link span {
        display: block;
        font-size: 9px;
    }

    .nav-bottom {
        display: none;
    }

    /* Bouton favoris dans le menu principal sur mobile */
    .nav-menu::after {
        content: none;
    }
}
