/* WebClone Multilanguage Styles - Premium Dark Theme */

/* Language Switcher Container */
#wcml-language-switcher {
    position: fixed;
    z-index: 99999;
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Position Classes */
.wcml-top-left {
    top: 20px;
    left: 20px;
}

.wcml-top-right {
    top: 20px;
    right: 20px;
}

.wcml-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wcml-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Toggle Button - Premium Style */
#wcml-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#wcml-toggle:hover {
    background: rgba(20, 20, 20, 0.98);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

#wcml-toggle svg {
    width: 22px;
    height: 22px;
    stroke: #D4AF37;
    transition: transform 0.3s ease;
}

#wcml-toggle:hover svg {
    transform: rotate(20deg);
}

#wcml-current-lang {
    color: #D4AF37;
    font-weight: 600;
}

/* Dropdown Panel */
#wcml-dropdown {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 20px;
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 
                0 0 1px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Position adjustments for dropdown */
.wcml-top-left #wcml-dropdown,
.wcml-top-right #wcml-dropdown {
    bottom: auto;
    top: calc(100% + 15px);
}

.wcml-bottom-left #wcml-dropdown,
.wcml-top-left #wcml-dropdown {
    right: auto;
    left: 0;
}

/* Hidden state */
.wcml-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    pointer-events: none;
}

#wcml-dropdown:not(.wcml-hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown Header */
#wcml-dropdown::before {
    content: 'SELECT LANGUAGE';
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #D4AF37;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style the Google Translate select dropdown */
#google_translate_element {
    display: block !important;
}

#google_translate_element .skiptranslate {
    display: block !important;
}

#google_translate_element .goog-te-gadget {
    font-family: inherit !important;
    color: transparent !important;
    font-size: 0 !important;
}

/* Hide "Powered by" text */
#google_translate_element .goog-te-gadget > span {
    display: none !important;
}

/* Hide the simple gadget, we'll style the combo */
.goog-te-gadget-simple {
    display: none !important;
}

/* Style the language select dropdown */
.goog-te-combo {
    width: 100% !important;
    padding: 14px 18px !important;
    background: rgba(30, 30, 30, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: 'Helvetica Neue', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 45px !important;
}

.goog-te-combo:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    background-color: rgba(40, 40, 40, 0.9) !important;
}

.goog-te-combo:focus {
    outline: none !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

.goog-te-combo option {
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 10px !important;
}

/* Hide Google Translate top bar and branding */
body > .skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Google Translate dropdown menu styling */
.goog-te-menu-frame {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.goog-te-menu2 {
    background: #1a1a1a !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.goog-te-menu2-item div {
    color: #fff !important;
    padding: 10px 15px !important;
}

.goog-te-menu2-item:hover div {
    background: rgba(212, 175, 55, 0.2) !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    /* Respect position classes on mobile with adjusted spacing */
    #wcml-language-switcher.wcml-top-left {
        top: 80px;
        left: 20px;
        right: auto;
        bottom: auto;
    }
    
    #wcml-language-switcher.wcml-top-right {
        top: 80px;
        right: 20px;
        left: auto;
        bottom: auto;
    }
    
    #wcml-language-switcher.wcml-bottom-left {
        bottom: 20px;
        left: 20px;
        right: auto;
        top: auto;
    }
    
    #wcml-language-switcher.wcml-bottom-right {
        bottom: 20px;
        right: 20px;
        left: auto;
        top: auto;
    }
    
    #wcml-toggle {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    #wcml-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    #wcml-dropdown {
        min-width: 200px;
        padding: 15px;
    }
    
    /* Dropdown position adjustments for mobile */
    .wcml-bottom-left #wcml-dropdown,
    .wcml-top-left #wcml-dropdown {
        right: auto;
        left: 0;
    }
    
    .wcml-bottom-right #wcml-dropdown,
    .wcml-top-right #wcml-dropdown {
        left: auto;
        right: 0;
    }
}

/* Animation for dropdown appearance */
@keyframes wcmlFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#wcml-dropdown:not(.wcml-hidden) {
    animation: wcmlFadeIn 0.3s ease-out;
}
