/* ═══════════════════════════════════════════════════════════════════
   🌍 ÇOKLU DİL SİSTEMİ
   ═══════════════════════════════════════════════════════════════════
   Dil değiştirici widget ve popup stilleri
*/

/* ═══════════════════════════════════════════════════════════════════
   🌍 FLOATING DIL BUTONU (Sağ Alt)
   ═══════════════════════════════════════════════════════════════════ */

.floating-lang-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.floating-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.floating-lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.6);
}

.floating-lang-icon {
    font-size: 20px;
    line-height: 1;
}

.floating-lang-text {
    font-size: 14px;
}

.floating-lang-button.active .floating-lang-btn {
    background: var(--secondary-color);
}

/* Floating Popup */
.floating-lang-popup {
    position: fixed;
    bottom: 90px;
    right: 30px;
    min-width: 250px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 9998;
    overflow: hidden;
}

.floating-lang-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-lang-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--light-bg);
    border-bottom: 2px solid var(--primary-color);
}

.floating-lang-popup-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.floating-lang-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.floating-lang-close:hover {
    background: var(--primary-color);
    color: var(--white);
}

.floating-lang-popup-options {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.floating-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-color);
}

.floating-lang-option:hover {
    background: var(--light-bg);
}

.floating-lang-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.floating-lang-flag {
    font-size: 24px;
}

.floating-lang-name {
    flex: 1;
    text-align: left;
    font-weight: 600;
}

.floating-lang-check {
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-lang-button {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-lang-btn {
        padding: 10px 16px;
    }
    
    .floating-lang-text {
        display: none;
    }
    
    .floating-lang-icon {
        font-size: 22px;
    }
    
    .floating-lang-popup {
        bottom: 75px;
        right: 20px;
        min-width: 200px;
    }
}

/* Müzik butonu artık style.css'te yeni konumda (bottom: 110px) */

/* ═══════════════════════════════════════════════════════════════════
   🔤 DIL DEĞİŞTİRİCİ WIDGET (Navbar) - SAKLI
   ═══════════════════════════════════════════════════════════════════ */

/* Navbar'daki dil değiştiriciyi gizle - artık floating button kullanıyoruz */

.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 600;
}

.lang-switcher-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-code {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.lang-arrow {
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: var(--text-color);
}

.lang-option:hover {
    background: var(--light-bg);
}

.lang-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-option .lang-name {
    flex: 1;
    text-align: left;
}

.lang-check {
    color: var(--white);
    font-weight: bold;
}

/* Loading state */
.lang-switcher.loading .lang-switcher-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 DIL SEÇİCİ POPUP
   ═══════════════════════════════════════════════════════════════════ */

.lang-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lang-popup-overlay.active {
    opacity: 1;
}

.lang-popup {
    background: var(--white);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lang-popup-overlay.active .lang-popup {
    transform: scale(1);
}

.lang-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.lang-popup-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.lang-popup-header p {
    font-size: 16px;
    color: var(--text-light);
}

.lang-popup-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lang-popup .lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--light-bg);
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-popup .lang-option:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.lang-popup .lang-option .lang-flag {
    font-size: 40px;
}

.lang-popup .lang-option .lang-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   🔄 RTL (Arapça) DESTEĞİ
   ═══════════════════════════════════════════════════════════════════ */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

/* Navbar RTL */
html[dir="rtl"] .navbar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option .lang-name {
    text-align: right;
}

/* Footer RTL */
html[dir="rtl"] .footer-content {
    direction: rtl;
}

html[dir="rtl"] .footer-links {
    text-align: right;
}

/* Buttons RTL */
html[dir="rtl"] .btn svg {
    transform: scaleX(-1);
}

/* Grid RTL */
html[dir="rtl"] .product-grid {
    direction: rtl;
}

/* ═══════════════════════════════════════════════════════════════════
   📱 RESPONSIVE (Mobile)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 10px;
    }
    
    .lang-switcher-btn {
        padding: 6px 10px;
    }
    
    .lang-code {
        font-size: 12px;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
    
    .lang-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .lang-popup {
        padding: 30px 20px;
    }
    
    .lang-popup-header h2 {
        font-size: 24px;
    }
    
    .lang-popup-options {
        grid-template-columns: 1fr;
    }
    
    .lang-popup .lang-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .lang-popup .lang-option .lang-flag {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        margin-left: 5px;
    }
    
    .lang-flag {
        font-size: 18px;
    }
    
    .lang-code {
        display: none;
    }
    
    .lang-arrow {
        width: 10px;
        height: 10px;
    }
}

 
 / *   C a n t o y   l o g o   g i z l e m e   -   S a d e c e   T u r k c e ' d e   g o r u n u r   * / 
 
 h t m l [ l a n g = ' e n ' ]   . c a n t o y - l o g o , 
 
 h t m l [ l a n g = ' a r ' ]   . c a n t o y - l o g o , 
 
 h t m l [ l a n g = ' r u ' ]   . c a n t o y - l o g o , 
 
 h t m l [ l a n g = ' e s ' ]   . c a n t o y - l o g o   { 
 
         d i s p l a y :   n o n e   ! i m p o r t a n t ; 
 
 } 
 
 
/* Cantoy logo gizleme - Sadece Turkce'de gorunur */
html[lang="en"] .cantoy-logo,
html[lang="ar"] .cantoy-logo,
html[lang="ru"] .cantoy-logo,
html[lang="es"] .cantoy-logo {
    display: none !important;
}
