/**
 * Language Switcher Styles for tieuduong.pro
 * Horizontal layout - 5 languages in a row
 * Version: 2.0.0
 */

/* Language Switcher Container - Horizontal */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(135deg, #2D5A3D 0%, #3D7A4D 100%);
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

/* Individual Language Button */
.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.lang-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

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

.lang-item .lang-code {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Separator between items */
.lang-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

/* Coming Soon Tooltip */
.lang-item[data-coming-soon="true"]:hover::after {
    content: 'Coming Soon';
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10001;
}

.lang-item[data-coming-soon="true"] {
    position: relative;
    opacity: 0.7;
}

.lang-item[data-coming-soon="true"]:hover {
    opacity: 1;
}

/* Coming Soon Message Popup */
.lang-coming-soon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.coming-soon-content {
    background: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

.coming-soon-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.coming-soon-content p {
    margin: 5px 0;
    font-size: 18px;
    color: #333;
}

.coming-soon-text {
    color: #666 !important;
    font-size: 14px !important;
}

.coming-soon-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.coming-soon-close:hover {
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Responsive */
@media (max-width: 900px) {
    .lang-switcher {
        padding: 5px 6px;
    }
    
    .lang-item {
        padding: 6px 10px;
    }
    
    .lang-item .lang-code {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .lang-switcher {
        top: 15px;
        right: 15px;
        padding: 4px 5px;
        gap: 0;
    }
    
    .lang-item {
        padding: 6px 8px;
    }
    
    .lang-item .lang-flag {
        font-size: 16px;
    }
    
    .lang-item .lang-code {
        display: none;
    }
    
    .lang-separator {
        height: 16px;
        margin: 0 1px;
    }
    
    .coming-soon-content {
        padding: 30px 25px;
        margin: 20px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 3px 4px;
    }
    
    .lang-item {
        padding: 5px 6px;
    }
    
    .lang-item .lang-flag {
        font-size: 14px;
    }
    
    .lang-separator {
        display: none;
    }
}

/* Print styles - hide switcher when printing */
@media print {
    .lang-switcher {
        display: none !important;
    }
}
