/* Cookie Consent Banner Styles */

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-overlay.show {
    display: block;
    opacity: 1;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: min(600px, calc(100% - 40px));
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.4s ease;
}

.cookie-consent-banner.show {
    transform: translateX(-50%) translateY(0);
}

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

.cookie-consent-icon {
    font-size: 28px;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.cookie-consent-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-consent-text a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

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

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
}

.cookie-consent-btn.accept {
    background-color: var(--accent-600);
    color: #ffffff;
}

.cookie-consent-btn.accept:hover {
    background: var(--accent);
}

.cookie-consent-btn.decline {
    background: var(--card-dark);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-consent-btn.decline:hover {
    background: var(--glass);
}

.cookie-consent-btn.preferences {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-consent-btn.preferences:hover {
    background: var(--glass);
}

/* Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(500px, calc(100% - 40px));
    max-height: calc(100vh - 80px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.cookie-preferences-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-preferences-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}

.cookie-preferences-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cookie-preferences-close:hover {
    background: var(--glass);
    color: var(--text-strong);
}

.cookie-preferences-description {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cookie-category {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--muted);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input {
    display: none;
}

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

.cookie-toggle input:checked~.cookie-toggle-slider,
.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-toggle.active {
    background: var(--accent);
}

.cookie-category-description {
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-preferences-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.cookie-preferences-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.cookie-preferences-btn.save {
    background: var(--accent);
    color: #ffffff;
}

.cookie-preferences-btn.save:hover {
    opacity: 0.9;
}

.cookie-preferences-btn.cancel {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-preferences-btn.cancel:hover {
    background: var(--glass);
}

/* Responsive */
@media (max-width: 600px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 24px 20px;
    }

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

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

    .cookie-consent-btn {
        width: 100%;
    }

    .cookie-preferences-modal {
        width: calc(100% - 20px);
        padding: 20px;
    }
}