/* Çoklu Dil Sistemi CSS */

/* Inline Language Switcher Styles */
.language-switcher-inline {
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.language-switcher-inline .language-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 15px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.25) !important;
    min-width: 35px;
    text-align: center;
}

.language-switcher-inline .language-option:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.language-switcher-inline .language-option.active {
    background: rgba(255, 255, 255, 0.95);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-switcher-inline .lang-separator {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 16px;
    margin: 0 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Transparent header için özel stiller */
.navbar.bg-transparent .language-switcher-inline .language-option {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar.bg-transparent .language-switcher-inline .language-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff !important;
}

.navbar.bg-transparent .language-switcher-inline .language-option.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: #333 !important;
    text-shadow: none;
}

.navbar.bg-transparent .language-switcher-inline .lang-separator {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive için mobil düzenlemeler */
@media (max-width: 768px) {
    .language-switcher-inline {
        margin-left: 10px;
        gap: 3px;
    }
    
    .language-switcher-inline .language-option {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 30px;
        border-width: 1px;
    }
    
    .language-switcher-inline .lang-separator {
        font-size: 12px;
        margin: 0 1px;
    }
}

/* Navbar scroll durumunda dil değiştirici stilleri */
.navbar-fixed-top.scrolled .language-switcher-inline .language-option {
    background: rgba(0, 0, 0, 0.1);
    color: #666 !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-shadow: none;
}

.navbar-fixed-top.scrolled .language-switcher-inline .language-option:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.25);
}

.navbar-fixed-top.scrolled .language-switcher-inline .language-option.active {
    background: rgba(0, 0, 0, 0.8);
    color: #fff !important;
    border-color: rgba(0, 0, 0, 0.8);
}

.navbar-fixed-top.scrolled .language-switcher-inline .lang-separator {
    color: rgba(0, 0, 0, 0.4);
    text-shadow: none;
}
.navbar-fixed-top:not(.mega-menu-fullwidth) .language-switcher-inline {
    margin-top: 0px !important; 
}
/* Normal navbar (includes/header.php) için özel stiller */
.navbar-fixed-top:not(.mega-menu-fullwidth) .language-switcher-inline .language-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    color: rgba(0, 0, 0,0.3) !important;
    font-weight: 700;
}

.navbar-fixed-top:not(.mega-menu-fullwidth) .language-switcher-inline .language-option:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(0, 0, 0, 0.7) !important;
    color: #000 !important;
    transform: translateY(-1px);
}

.navbar-fixed-top:not(.mega-menu-fullwidth) .language-switcher-inline .language-option.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0,0,0,1) !important;
    color: rgba(0,0,0,1) !important;
    text-shadow: none;
    font-weight: 700;
}

.navbar-fixed-top:not(.mega-menu-fullwidth) .language-switcher-inline .lang-separator {
    color: rgba(0, 0, 0, 0.4);
    text-shadow: none;
    font-weight: 500;
}

/* Tüm navbar'lar için daha güçlü görünürlük */
.language-switcher-inline {
    margin-left: 15px;
    display: inline-flex !important;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
    z-index: 1000;
    position: relative;
}

.language-switcher-inline .language-option {
    background: rgba(255, 255, 255, 0.15);
    padding: 7px 12px;
    border-radius: 18px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 1) !important;
    min-width: 38px;
    text-align: center;
    display: inline-block;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Loading animation for language switcher */
.language-switcher-inline.loading .language-option {
    pointer-events: none;
    opacity: 0.6;
}

/* Hreflang ve SEO iyileştirmeleri için gizli elemanlar */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dil bazlı content adjustments */
[lang="en"] .text-justify {
    text-align: left;
}

[lang="tr"] .text-justify {
    text-align: justify;
}

/* RTL Languages support (future) */
[dir="rtl"] .language-switcher-inline {
    margin-left: 0;
    margin-right: 15px;
}

/* Print styles */
@media print {
    .language-switcher-inline {
        display: none;
    }
}

/* Responsive için mobil düzenlemeler */
@media (max-width: 768px) {
    .language-switcher-inline {
        margin-left: 10px;
        gap: 3px;
    }
    
    .language-switcher-inline .language-option {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 30px;
    }
    
    .language-switcher-inline .lang-separator {
        font-size: 12px;
        margin: 0 1px;
    }
}

/* Navbar scroll durumunda dil değiştirici stilleri */
.navbar-fixed-top.scrolled .language-switcher-inline .language-option {
    background: rgba(0, 0, 0, 0.1);
    color: #666 !important;
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-fixed-top.scrolled .language-switcher-inline .language-option:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333 !important;
}

.navbar-fixed-top.scrolled .language-switcher-inline .language-option.active {
    background: rgba(0, 0, 0, 0.8);
    color: #fff !important;
    border-color: rgba(0, 0, 0, 0.8);
}

.navbar-fixed-top.scrolled .language-switcher-inline .lang-separator {
    color: rgba(0, 0, 0, 0.4);
}

/* Loading animation for language switcher */
.language-switcher-inline.loading .language-option {
    pointer-events: none;
    opacity: 0.6;
}

/* Hreflang ve SEO iyileştirmeleri için gizli elemanlar */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dil bazlı content adjustments */
[lang="en"] .text-justify {
    text-align: left;
}

[lang="tr"] .text-justify {
    text-align: justify;
}

/* RTL Languages support (future) */
[dir="rtl"] .language-switcher-inline {
    margin-left: 0;
    margin-right: 15px;
}

/* Print styles */
@media print {
    .language-switcher-inline {
        display: none;
    }
}