/**
 * ELT Frontend Styles - Minimal version (Elementor handles menu styling)
 */

/* Language selector - fixed position version */
#elt-language-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--e-global-color-74b2862, #ffffff);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    z-index: 9997;
    display: none;
    align-items: center;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Hide fixed selector when menu integration is used */
#elt-language-container.elt-hide-fixed {
    display: none;
}

/* Custom Select Wrapper */
.elt-custom-select-wrapper {
    position: relative;
    display: inline-block;
}

/* Hide the native select but keep it accessible */
.visually-hidden {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
}

/* Custom button styling */
.elt-select-button {
    display: flex;
    align-items: center;
    padding: 4px 24px 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    font-size: 14px;
    min-width: 120px;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

/* Dropdown arrow */
.elt-select-button::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

/* Accessibility enhancements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Make dropdown options more visible */
select#elt-language-selector option,
select#elt-menu-language-selector option {
    font-size: 14px;
    padding: 4px 8px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    #elt-language-container {
        padding: 6px 10px;
    }
    
    .elt-select-button {
        min-width: 100px;
        font-size: 13px;
    }
}
