﻿.lang-switcher {
    text-align: center;
    margin-bottom: 30px;
}

.lang-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background: #4F46E5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

    .lang-btn:hover {
        background: #4338CA;
    }

    .lang-btn.active {
        background: #10B981;
    }

/* Kompakt Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: -20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 20px;
    max-width: 380px;
    z-index: 1000;
    transform: translateX(420px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(0,0,0,0.05);
}

    .cookie-banner.show {
        right: 20px;
        transform: translateX(0);
    }

.cookie-banner-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 20px;
}

.cookie-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    padding: 4px;
    margin-left: auto;
    border-radius: 4px;
    transition: color 0.2s;
}

    .cookie-banner-close:hover {
        color: #666;
    }

.cookie-text {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 16px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
}

.cookie-btn-primary {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

    .cookie-btn-primary:hover {
        background: #4338CA;
        border-color: #4338CA;
    }

.cookie-btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border-color: #D1D5DB;
}

    .cookie-btn-secondary:hover {
        background: #E5E7EB;
    }

.cookie-btn-outline {
    background: transparent;
    color: #4F46E5;
    border-color: #4F46E5;
    font-size: 12px;
    padding: 6px 12px;
}

    .cookie-btn-outline:hover {
        background: #4F46E5;
        color: white;
    }

/* Cookie Modal */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .cookie-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cookie-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-overlay.active .cookie-modal {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s;
}

    .cookie-modal-close:hover {
        color: #666;
    }

.cookie-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-modal-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    font-size: 28px;
}

.cookie-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-modal-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cookie-categories {
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

    .category-item:last-child {
        border-bottom: none;
    }

.category-info {
    flex: 1;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 12px;
    color: #666;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .toggle-switch.active {
        background: #4F46E5;
    }

    .toggle-switch.disabled {
        cursor: not-allowed;
        background: #4F46E5;
    }

.toggle-knob {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    flex: 1;
    min-width: 120px;
}

.modal-btn-primary {
    background: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

    .modal-btn-primary:hover {
        background: #4338CA;
    }

.modal-btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border-color: #D1D5DB;
}

    .modal-btn-secondary:hover {
        background: #E5E7EB;
    }

.modal-btn-outline {
    background: transparent;
    color: #4F46E5;
    border-color: #4F46E5;
}

    .modal-btn-outline:hover {
        background: #4F46E5;
        color: white;
    }

/* Success Message */
.success-message {
    z-index: 9999;
    position: fixed;
    top: 20px;
    left: 20px;
    background: #10B981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    animation: slideInSuccess 0.3s ease-out;
    max-width: calc(100vw - 40px);
    word-wrap: break-word;
    box-sizing: border-box;
}

@keyframes slideInSuccess {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.cookie-icon {
    font-size: 18px;
}

.cookie-title {
    font-size: 15px;
}
/* Mobile Responsiveness */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: env(safe-area-inset-bottom, 12px);
        left: 12px;
        right: 12px;
        max-width: calc(100vw - 24px);
        transform: translateY(100%);
        border-radius: 12px;
        padding: 16px;
    }

        .cookie-banner.show {
            transform: translateY(0);
        }

    .cookie-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        margin-top: 6px;
        font-size: 13px;
        padding: 10px 0;
    }

    .cookie-modal {
        padding: 24px;
        margin: 20px;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        flex: none;
        width: 100%;
    }

    .lang-switcher {
        margin-bottom: 20px;
    }

    .lang-btn {
        display: block;
        margin: 5px auto;
        width: 150px;
    }

    /* Mobile Success Message Fix */
    .success-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
        font-size: 13px;
        padding: 10px 16px;
        animation: slideInSuccessMobile 0.3s ease-out;
    }

    @keyframes slideInSuccessMobile {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Ekstra küçük ekranlar için */
@media (max-width: 320px) {
    .success-message {
        font-size: 12px;
        padding: 8px 12px;
    }

    .cookie-banner {
        padding: 16px;
    }

    .cookie-text {
        font-size: 13px;
    }

    .cookie-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}
