/* ===============================================
   SULAX LANGUAGE SELECTOR STYLES
   Dil Seçici Bileşeni
   =============================================== */

/* Language Selector Container */
.sulax-language-selector {
    position: relative;
    margin-right: 20px;
}

/* Language Button */
.sulax-language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #ffffff; /* Default: Beyaz renk */
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    outline: none;
}

/* Flag Icon */
.sulax-flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

/* Language Button Icon (Chevron) */
.sulax-language-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: inherit;
}

/* Language Selector Hover - Icon Rotation */
.sulax-language-selector:hover .sulax-language-btn i {
    transform: rotate(180deg);
}

/* Language Button Hover */
.sulax-language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Language Button Hover - Flag Border */
.sulax-language-btn:hover .sulax-flag-icon {
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===============================================
   STICKY HEADER STATES
   =============================================== */

/* Header Sticky - Siyah Renkler */
.header-sticky .sulax-language-btn,
#header-black .sulax-language-btn {
    color: #000000; /* Siyah renk */
}

.header-sticky .sulax-language-btn i,
#header-black .sulax-language-btn i {
    color: #000000; /* Siyah icon */
}

.header-sticky .sulax-flag-icon,
#header-black .sulax-flag-icon {
    border-color: rgba(0, 0, 0, 0.3);
}

.header-sticky .sulax-language-btn:hover,
#header-black .sulax-language-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #c80b0f; /* Hover rengi - Kırmızı */
}

.header-sticky .sulax-language-btn:hover i,
#header-black .sulax-language-btn:hover i {
    color: #c80b0f; /* Hover icon rengi - Kırmızı */
}

.header-sticky .sulax-language-btn:hover .sulax-flag-icon,
#header-black .sulax-language-btn:hover .sulax-flag-icon {
    border-color: #c80b0f;
}



/* ===============================================
   LANGUAGE DROPDOWN
   =============================================== */

.sulax-language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    margin-top: 5px;
}

/* Language Dropdown Visible */
.sulax-language-selector:hover .sulax-language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Options */
.sulax-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px;
}

/* Language Option Hover */
.sulax-language-option:hover {
    background: #f3f4f6;
    color: #c80b0f; /* Hover rengi - Kırmızı */
}

/* Language Option Flag Icon */
.sulax-language-option .sulax-flag-icon {
    border-color: #e5e7eb;
}

.sulax-language-option:hover .sulax-flag-icon {
    border-color: #c80b0f;
}

/* ===============================================
   OFFCANVAS MOBILE LANGUAGE SELECTOR
   =============================================== */

/* Offcanvas Language Container */
.tp-offcanvas-language {
    margin: 0 0 30px 0; /* Üstten boşluk yok, alttan var */
    padding: 20px 0 20px 0; /* Üstten padding yok, alttan var */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Offcanvas Language Title */
.tp-offcanvas-language .tp-offcanvas-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333; /* Koyu renk - gözükmesi için */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Offcanvas Language Options Container */
.tp-offcanvas-language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Offcanvas Language Option */
.tp-offcanvas-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #333333; /* Koyu renk - gözükmesi için */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.03);
}

/* Offcanvas Language Option Hover */
.tp-offcanvas-language-option:hover {
    background: rgba(200, 11, 15, 0.1);
    color: #c80b0f; /* Hover'da kırmızı renk */
    transform: translateX(5px);
}

/* Offcanvas Language Option Active */
.tp-offcanvas-language-option.active {
    background: rgba(200, 11, 15, 0.15);
    color: #c80b0f; /* Active'de kırmızı renk */
    font-weight: 500;
}

/* Offcanvas Flag Icon */
.tp-offcanvas-flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Offcanvas Language Option Hover - Flag */
.tp-offcanvas-language-option:hover .tp-offcanvas-flag-icon {
    border-color: #c80b0f;
    border-width: 2px;
    transform: scale(1.1);
}

/* Offcanvas Language Option Active - Flag */
.tp-offcanvas-language-option.active .tp-offcanvas-flag-icon {
    border-color: #c80b0f;
    border-width: 2px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablet (1024px ve altı) */
@media (max-width: 1199px) {
    .sulax-language-selector {
        margin-right: 15px;
    }
    
    .sulax-language-btn {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .sulax-flag-icon {
        width: 18px;
        height: 18px;
    }
}

/* Mobile (768px ve altı) */
@media (max-width: 991px) {
    .sulax-language-selector {
        display: none !important; /* Mobilde gizle - zaten d-none d-xl-block var ama ekstra güvenlik */
    }
}

/* ===============================================
   FOCUS STATES (Accessibility)
   =============================================== */

.sulax-language-btn:focus {
    outline: 2px solid #c80b0f;
    outline-offset: 2px;
}

.sulax-language-option:focus {
    outline: 2px solid #c80b0f;
    outline-offset: -2px;
}

/* ===============================================
   ACTIVE STATE
   =============================================== */

.sulax-language-option.active {
    background: rgba(200, 11, 15, 0.1);
    color: #c80b0f;
    font-weight: 500;
}

.sulax-language-option.active .sulax-flag-icon {
    border-color: #c80b0f;
    border-width: 2px;
}

