/* Cookie Consent Banner Styles */

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    color: white;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-consent-text a {
    color: var(--primary-color, #0ea5e9);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-customize {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary-color, #0ea5e9);
    color: white;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.btn-cookie-reject {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cookie-customize {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-customize:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-settings-header h3 {
    color: var(--text-dark, #1e293b);
    margin: 0;
    font-size: 1.75rem;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light, #64748b);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close-btn:hover {
    background: var(--bg-light, #f8fafc);
    color: var(--text-dark, #1e293b);
}

.cookie-settings-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-category-header h4 {
    color: var(--text-dark, #1e293b);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-category p {
    color: var(--text-light, #64748b);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-color, #0ea5e9);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: var(--primary-color, #0ea5e9);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-cookie-save {
    padding: 0.75rem 2rem;
    background: var(--primary-color, #0ea5e9);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie-save:hover {
    background: var(--primary-dark, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

.btn-cookie-save:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-cookie-accept,
    .btn-cookie-reject,
    .btn-cookie-customize {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-settings-content {
        max-height: 95vh;
    }
    
    .cookie-settings-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .cookie-settings-body {
        padding: 1.5rem;
    }
    
    .cookie-settings-footer {
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
    }
    
    .btn-cookie-save,
    .btn-cookie-accept {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .btn-cookie-accept,
    .btn-cookie-reject,
    .btn-cookie-customize {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

