.wtp-language-switcher {
    display: inline-flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wtp-language-switcher:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.wtp-theme-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.wtp-theme-dark {
    background: #2d3748;
    border: 1px solid #4a5568;
}

.wtp-language-buttons {
    display: flex;
    gap: 0;
}

.wtp-position-vertical .wtp-language-buttons {
    flex-direction: column;
}

.wtp-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    min-width: 44px;
    position: relative;
}

.wtp-lang-btn:not(:last-child) {
    border-right: 1px solid;
}

.wtp-position-vertical .wtp-lang-btn:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid;
}

.wtp-theme-light .wtp-lang-btn {
    color: #64748b;
    border-color: #e2e8f0;
}

.wtp-theme-light .wtp-lang-btn:hover {
    background: #f8fafc;
    color: #334155;
}

.wtp-theme-light .wtp-lang-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

.wtp-theme-dark .wtp-lang-btn {
    color: #cbd5e0;
    border-color: #4a5568;
}

.wtp-theme-dark .wtp-lang-btn:hover {
    background: #4a5568;
    color: #ffffff;
}

.wtp-theme-dark .wtp-lang-btn.active {
    background: #3b82f6;
    color: #ffffff;
}

.wtp-flag {
    font-size: 16px;
    line-height: 1;
}

.wtp-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sadece bayrak gösterimi */
.wtp-lang-btn .wtp-label:empty + .wtp-flag,
.wtp-lang-btn:not(:has(.wtp-label)) .wtp-flag {
    font-size: 18px;
}

/* Loading durumu */
.wtp-lang-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animasyonlar */
.wtp-lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wtp-lang-btn:active::before {
    opacity: 0.1;
}

/* Responsive */
@media (max-width: 480px) {
    .wtp-lang-btn {
        padding: 6px 8px;
        min-width: 36px;
    }
    
    .wtp-flag {
        font-size: 14px;
    }
    
    .wtp-label {
        font-size: 11px;
    }
}

/* Özel varyantlar */
.wtp-variant-pills {
    gap: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.wtp-variant-pills .wtp-lang-btn {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.wtp-variant-pills .wtp-lang-btn:not(:last-child) {
    border-right: 1px solid #e2e8f0;
}

.wtp-variant-pills .wtp-lang-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Minimal varyant */
.wtp-variant-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 2px;
}

.wtp-variant-minimal .wtp-lang-btn {
    border-radius: 4px;
    padding: 4px 6px;
    min-width: 32px;
}

.wtp-variant-minimal .wtp-lang-btn:not(:last-child) {
    border-right: none;
}

.wtp-variant-minimal .wtp-theme-light .wtp-lang-btn.active {
    background: #f1f5f9;
    color: #3b82f6;
}

/* Modern Dropdown Stilleri */
.wtp-language-dropdown {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wtp-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid;
    min-width: 140px;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wtp-dropdown-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.wtp-theme-light .wtp-dropdown-btn {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

.wtp-theme-dark .wtp-dropdown-btn {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.wtp-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    padding: 8px 0;
    border-radius: 12px;
    border: 1px solid;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    display: none;
    animation: fadeIn 0.2s ease;
}

.wtp-theme-light .wtp-dropdown-menu {
    background: #ffffff;
    border-color: #e5e7eb;
}

.wtp-theme-dark .wtp-dropdown-menu {
    background: #374151;
    border-color: #4b5563;
}

.wtp-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wtp-theme-light .wtp-lang-option {
    color: #1f2937;
}

.wtp-theme-light .wtp-lang-option:hover {
    background-color: #f9fafb;
}

.wtp-theme-light .wtp-lang-option.active {
    background-color: #eff6ff;
}

.wtp-theme-dark .wtp-lang-option {
    color: #ffffff;
}

.wtp-theme-dark .wtp-lang-option:hover {
    background-color: #4b5563;
}

.wtp-theme-dark .wtp-lang-option.active {
    background-color: #4b5563;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-4px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}