/* Cookie Consent Banner Styles */
:root {
    --cc-bg: rgba(255, 255, 255, 0.8);
    --cc-text: #1e293b;
    --cc-primary: #3b82f6;
    --cc-primary-hover: #2563eb;
    --cc-secondary: #f1f5f9;
    --cc-secondary-hover: #e2e8f0;
    --cc-border: rgba(226, 232, 240, 0.8);
    --cc-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .cookie-consent-banner {
    --cc-bg: rgba(30, 41, 59, 0.9);
    --cc-text: #f8fafc;
    --cc-primary: #3b82f6;
    --cc-border: rgba(51, 65, 85, 0.8);
}

.cookie-consent-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    max-width: 1600px;
    width: 92%;
    background: var(--cc-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cc-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--cc-shadow);
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.cookie-consent-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-consent-banner h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--cc-text);
}

.cookie-consent-banner p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 20px;
}

.cookie-consent-banner p a {
    color: var(--cc-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-banner p a:hover {
    text-decoration: underline;
}

.cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cc-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

.cc-btn-accept {
    background: var(--cc-primary);
    color: white;
}

.cc-btn-accept:hover {
    background: var(--cc-primary-hover);
    transform: translateY(-1px);
}

.cc-btn-secondary {
    background: var(--cc-secondary);
    color: var(--cc-text);
}

.cc-btn-secondary:hover {
    background: var(--cc-secondary-hover);
}

/* Modal configuration */
.cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cc-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cc-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--cc-shadow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark .cc-modal {
    background: #1e293b;
    color: white;
}

.cc-modal-overlay.show .cc-modal {
    transform: scale(1);
}

.cc-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--cc-border);
}

.cc-option:last-child {
    border-bottom: none;
}

.cc-option-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.cc-option-info p {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Toggle Switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cc-slider {
    background-color: var(--cc-primary);
}

input:focus + .cc-slider {
    box-shadow: 0 0 1px var(--cc-primary);
}

input:checked + .cc-slider:before {
    transform: translateX(20px);
}

input:disabled + .cc-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 850px) {
    .cookie-consent-banner {
        max-width: none;
        width: 92%;
    }
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 20px;
        width: 92%;
        padding: 20px;
    }
    
    .cc-buttons {
        flex-direction: column;
    }
    
    .cc-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
    }
    
    .cc-modal {
        padding: 24px;
        width: 95%;
    }
}
