/**
 * Smart Geo Translate - Frontend Styles
 */

/* Language Switcher */
#sgt-language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
}

.sgt-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sgt-switcher-toggle:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.sgt-flag {
    font-size: 18px;
    line-height: 1;
}

.sgt-lang-name {
    font-weight: 500;
    color: #333;
}

.sgt-currency {
    color: #666;
    font-size: 12px;
}

.sgt-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.sgt-switcher-toggle[aria-expanded="true"] .sgt-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.sgt-switcher-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0 0 10px 0;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
}

.sgt-switcher-dropdown li {
    margin: 0;
    padding: 0;
}

.sgt-switcher-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sgt-switcher-dropdown a:hover {
    background: #f5f5f5;
}

.sgt-switcher-dropdown a.active {
    background: #e8f4fc;
    color: #0073aa;
    font-weight: 600;
}

/* Price display */
.sgt-price {
    white-space: nowrap;
}

.sgt-price small {
    opacity: 0.7;
    font-size: 0.85em;
}

/* Animation for content loading */
.sgt-translating {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
    #sgt-language-switcher {
        bottom: 10px;
        right: 10px;
    }
    
    .sgt-switcher-toggle {
        padding: 8px 12px;
    }
    
    .sgt-lang-name {
        display: none;
    }
    
    .sgt-switcher-dropdown {
        right: -10px;
        min-width: 160px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sgt-switcher-toggle {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .sgt-switcher-toggle:hover {
        background: #3d3d3d;
    }
    
    .sgt-lang-name {
        color: #fff;
    }
    
    .sgt-currency {
        color: #aaa;
    }
    
    .sgt-switcher-dropdown {
        background: #2d2d2d;
        border-color: #444;
    }
    
    .sgt-switcher-dropdown a {
        color: #fff;
    }
    
    .sgt-switcher-dropdown a:hover {
        background: #3d3d3d;
    }
    
    .sgt-switcher-dropdown a.active {
        background: #1a3a4a;
    }
}
