/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */

/* Desktop Language Switcher */
.language-switcher {
    display: flex !important;
    gap: 8px;
    align-items: center;
    z-index: 10000 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10001 !important;
    min-width: 70px;
    justify-content: center;
    text-decoration: none;
}

.lang-btn .flag {
    font-size: 1.2rem;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.lang-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 50%, #00ff88 100%) !important;
    color: #000000 !important;
    border-color: transparent !important;
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
    font-weight: 700;
}

/* Light theme adjustments */
:root[data-theme="light"] .lang-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .lang-btn:hover {
    background: rgba(0, 153, 204, 0.1) !important;
    border-color: #0099cc !important;
}

:root[data-theme="light"] .lang-btn.active {
    background: linear-gradient(135deg, #0099cc 0%, #cc00cc 50%, #00cc66 100%) !important;
    color: #ffffff !important;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    /* Hide desktop switcher */
    .nav-container .language-switcher {
        display: none !important;
    }
    
    /* Show mobile switcher */
    body > .language-switcher {
        position: fixed !important;
        bottom: 80px;
        left: 20px;
        right: auto;
        z-index: 10000 !important;
        display: flex !important;
        flex-wrap: wrap;
        max-width: 280px;
        gap: 8px;
        padding: 12px;
        background: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    body > .language-switcher .lang-btn {
        min-width: 75px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Adjust theme switcher position */
    .theme-switcher {
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
    }
    
    /* Adjust chatbot position */
    .ai-chatbot {
        bottom: 20px;
        right: 90px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .language-switcher {
        gap: 5px;
    }
    
    .lang-btn {
        min-width: 60px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* Remove any cursor trails completely */
.cursor-trail,
.trail-element,
*[class*="trail"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure no touch traces remain */
body {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* Disable any ripple effects that might leave traces */
.touch-ripple,
.ripple,
*[class*="ripple"] {
    display: none !important;
}

/* Ensure language switcher is always on top */
.language-switcher,
.language-switcher * {
    pointer-events: auto !important;
}

/* Animation for language change */
body.changing-language {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Ensure visibility after page load */
body.loaded .language-switcher {
    opacity: 1 !important;
    visibility: visible !important;
}