/* ═══════════════════════════════════════════════════════════
   🚀 DOCK BAR - STYLE FUTURISTE V2 (MOBILE CORRIGÉ)
   À charger APRÈS dock-bar.css et dock-tweaks.css
   ═══════════════════════════════════════════════════════════ */

/* ========================================
   🌟 DOCK BAR FUTURISTE - DESKTOP
   ======================================== */

@media (min-width: 769px) {
    .dock-bar {
        background: rgba(10, 10, 20, 0.85) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        border: 2px solid transparent !important;
        background-image: 
            linear-gradient(rgba(10, 10, 20, 0.85), rgba(10, 10, 20, 0.85)),
            linear-gradient(90deg, #00d9ff, #7c4dff, #ff1744, #ffd700, #00d9ff) !important;
        background-origin: border-box !important;
        background-clip: padding-box, border-box !important;
        box-shadow: 
            0 0 60px rgba(0, 217, 255, 0.3),
            0 10px 80px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(0, 217, 255, 0.2) !important;
        animation: borderGlow 8s linear infinite, floatDock 6s ease-in-out infinite !important;
    }
}

/* ========================================
   📱 DOCK BAR FUTURISTE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .dock-bar {
        background: rgba(10, 10, 20, 0.95) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        border: 2px solid transparent !important;
        border-bottom: none !important;
        background-image: 
            linear-gradient(rgba(10, 10, 20, 0.95), rgba(10, 10, 20, 0.95)),
            linear-gradient(90deg, #00d9ff, #7c4dff, #ff1744, #ffd700, #00d9ff) !important;
        background-origin: border-box !important;
        background-clip: padding-box, border-box !important;
        box-shadow: 
            0 0 40px rgba(0, 217, 255, 0.3),
            0 -10px 60px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(0, 217, 255, 0.2) !important;
        animation: borderGlowMobile 8s linear infinite !important;
        display: flex !important;
        justify-content: space-evenly !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 8px !important;
    }
}

@keyframes borderGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
    }
    25% {
        filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 23, 68, 0.4));
    }
    75% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    }
}

@keyframes borderGlowMobile {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.4));
    }
    33% {
        filter: drop-shadow(0 0 15px rgba(124, 77, 255, 0.4));
    }
    66% {
        filter: drop-shadow(0 0 15px rgba(255, 23, 68, 0.4));
    }
}

@keyframes floatDock {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* ========================================
   💎 ITEMS FUTURISTES
   ======================================== */

.dock-item {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.9)) !important;
    border: 1px solid rgba(0, 217, 255, 0.3) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(0, 217, 255, 0.2),
        0 0 15px rgba(0, 217, 255, 0.1) !important;
    position: relative;
    overflow: visible !important;
}

/* Mobile - Items plus petits */
@media (max-width: 768px) {
    .dock-item {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        flex-shrink: 0 !important;
    }
}

/* Particules lumineuses autour des items */
.dock-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 217, 255, 0.3) 50%, 
        transparent 70%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: particleRotate 4s linear infinite;
    z-index: -1;
}

@keyframes particleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dock-item:hover::before {
    opacity: 1;
}

/* Effet scan holographique */
.dock-item::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 217, 255, 0.3),
        transparent
    );
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { top: -100%; }
    50% { top: 100%; }
}

/* Desktop hover */
@media (min-width: 769px) {
    .dock-item:hover {
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(124, 77, 255, 0.2)) !important;
        border-color: rgba(0, 217, 255, 0.8) !important;
        box-shadow: 
            0 8px 40px rgba(0, 217, 255, 0.4),
            0 0 60px rgba(0, 217, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        transform: translateY(-10px) scale(1.12) !important;
    }
}

/* Mobile active */
@media (max-width: 768px) {
    .dock-item:active {
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(124, 77, 255, 0.2)) !important;
        border-color: rgba(0, 217, 255, 0.8) !important;
        box-shadow: 
            0 4px 20px rgba(0, 217, 255, 0.4),
            0 0 30px rgba(0, 217, 255, 0.3) !important;
        transform: scale(0.95) !important;
    }
}

/* ========================================
   🎨 ICÔNES FUTURISTES
   ======================================== */

.dock-icon {
    position: relative;
    z-index: 1;
}

.dock-icon i {
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px currentColor);
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px currentColor);
    }
}

/* Couleurs néon par bouton */
.dock-item:nth-child(1) .dock-icon { color: #ffd700 !important; } /* Home - Or */
.dock-item:nth-child(2) .dock-icon { color: #00d9ff !important; } /* Menu - Cyan */
.dock-item:nth-child(3) .dock-icon { color: #00ff88 !important; } /* Radio - Vert */
.dock-item:nth-child(4) .dock-icon { color: #ff1744 !important; } /* Cœur - Rouge */
.dock-item:nth-child(5) .dock-icon { color: #ff9100 !important; } /* Partage - Orange */
.dock-item:nth-child(6) .dock-icon { color: #7c4dff !important; } /* Compte - Violet */

/* Desktop hover effect */
@media (min-width: 769px) {
    .dock-item:hover .dock-icon {
        filter: drop-shadow(0 0 25px currentColor) drop-shadow(0 0 40px currentColor) !important;
        animation: iconGlowPulse 1s ease-in-out infinite;
    }
}

/* Mobile active effect */
@media (max-width: 768px) {
    .dock-item:active .dock-icon {
        filter: drop-shadow(0 0 20px currentColor) !important;
    }
}

@keyframes iconGlowPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   ✨ LABEL HOLOGRAPHIQUE (Desktop only)
   ======================================== */

@media (min-width: 769px) {
    .dock-label {
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.95), rgba(124, 77, 255, 0.95)) !important;
        color: #fff !important;
        border: 1px solid rgba(0, 217, 255, 0.5) !important;
        box-shadow: 
            0 8px 32px rgba(0, 217, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(20px) !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.8) !important;
    }

    .dock-label::after {
        border-top-color: rgba(0, 217, 255, 0.95) !important;
    }
}

/* ========================================
   🔴 BADGE LIVE FUTURISTE
   ======================================== */

.dock-badge {
    background: linear-gradient(135deg, #ff1744, #ff4569) !important;
    box-shadow: 
        0 0 20px rgba(255, 23, 68, 0.8),
        0 0 40px rgba(255, 23, 68, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border: 2px solid rgba(255, 23, 68, 0.5) !important;
    animation: liveBadgePulse 1.5s ease-in-out infinite !important;
}

@keyframes liveBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(255, 23, 68, 0.8),
            0 0 40px rgba(255, 23, 68, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 
            0 0 30px rgba(255, 23, 68, 1),
            0 0 60px rgba(255, 23, 68, 0.6);
    }
}

/* ========================================
   🎯 EFFET RIPPLE FUTURISTE
   ======================================== */

.dock-item:active::before {
    background: radial-gradient(
        circle,
        rgba(0, 217, 255, 0.6) 0%,
        rgba(0, 217, 255, 0.3) 30%,
        transparent 60%
    );
    animation: rippleFuturistic 0.8s ease-out;
}

@keyframes rippleFuturistic {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ========================================
   🌌 GRILLE DE FOND HOLOGRAPHIQUE
   ======================================== */

@media (min-width: 769px) {
    .dock-bar::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: 
            repeating-linear-gradient(
                0deg,
                rgba(0, 217, 255, 0.03) 0px,
                transparent 1px,
                transparent 2px,
                rgba(0, 217, 255, 0.03) 3px
            ),
            repeating-linear-gradient(
                90deg,
                rgba(0, 217, 255, 0.03) 0px,
                transparent 1px,
                transparent 2px,
                rgba(0, 217, 255, 0.03) 3px
            );
        background-size: 20px 20px;
        border-radius: 20px;
        opacity: 0.5;
        pointer-events: none;
        animation: gridMove 20s linear infinite;
    }
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 20px 20px, 20px 20px; }
}

/* ========================================
   🎮 MENU MODAL FUTURISTE
   ======================================== */

.dock-menu-modal.active {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px) !important;
}

.dock-menu-content {
    background: linear-gradient(135deg, rgba(10, 10, 25, 0.98), rgba(20, 20, 40, 0.98)) !important;
    border: 2px solid transparent !important;
    background-image: 
        linear-gradient(rgba(10, 10, 25, 0.98), rgba(20, 20, 40, 0.98)),
        linear-gradient(135deg, #00d9ff, #7c4dff, #ff1744) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.3),
        0 20px 100px rgba(0, 0, 0, 0.9) !important;
}

.dock-menu-link:hover {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.15), transparent) !important;
    border-color: rgba(0, 217, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2) !important;
}

.dock-menu-link > i {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(124, 77, 255, 0.2)) !important;
    box-shadow: 0 0 15px currentColor !important;
}

/* ========================================
   🌐 MODAL PARTAGE FUTURISTE
   ======================================== */

.dock-share-content {
    background: linear-gradient(135deg, rgba(10, 10, 25, 0.98), rgba(20, 20, 40, 0.98)) !important;
    border: 2px solid transparent !important;
    background-image: 
        linear-gradient(rgba(10, 10, 25, 0.98), rgba(20, 20, 40, 0.98)),
        linear-gradient(135deg, #00d9ff, #7c4dff) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.3),
        0 20px 100px rgba(0, 0, 0, 0.9) !important;
}

.share-button:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4) !important;
    transform: translateY(-5px) scale(1.05) !important;
}

.share-icon {
    box-shadow: 0 0 20px currentColor !important;
}

/* ========================================
   👤 COMPTE FUTURISTE
   ======================================== */

.user-initials {
    background: linear-gradient(135deg, #00d9ff, #7c4dff) !important;
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    animation: initialsGlowFuturistic 3s ease-in-out infinite !important;
}

@keyframes initialsGlowFuturistic {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 50px rgba(124, 77, 255, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

/* ========================================
   ⚡ ANIMATION D'ENTRÉE FUTURISTE
   ======================================== */

.dock-item {
    animation: itemAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards !important;
}

.dock-item:nth-child(1) { animation-delay: 0.1s !important; }
.dock-item:nth-child(2) { animation-delay: 0.2s !important; }
.dock-item:nth-child(3) { animation-delay: 0.3s !important; }
.dock-item:nth-child(4) { animation-delay: 0.4s !important; }
.dock-item:nth-child(5) { animation-delay: 0.5s !important; }
.dock-item:nth-child(6) { animation-delay: 0.6s !important; }

@keyframes itemAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}