/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-indigo);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #F4E4A6;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--sans-font);
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--vermilion);
    color: white;
}

.cookie-btn.accept:hover {
    background: #D63031;
}

.cookie-btn.reject {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn.customize {
    background: var(--gold);
    color: var(--primary-indigo);
}

.cookie-btn.customize:hover {
    background: #F4E4A6;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    color: var(--primary-indigo);
    font-family: var(--serif-font);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.cookie-category h4 {
    color: var(--primary-indigo);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--vermilion);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.disabled .cookie-slider {
    background-color: var(--gold);
    cursor: not-allowed;
}

.cookie-toggle.disabled input:checked + .cookie-slider {
    background-color: var(--gold);
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cookie-modal-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--sans-font);
}

.cookie-modal-btn.save {
    background: var(--vermilion);
    color: white;
}

.cookie-modal-btn.save:hover {
    background: #D63031;
}

.cookie-modal-btn.cancel {
    background: #6B7280;
    color: white;
}

.cookie-modal-btn.cancel:hover {
    background: #4B5563;
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        text-align: center;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}