/* GDPR Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--indigo);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    max-width: 600px;
}

.cookie-text h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.9rem;
}

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

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    min-width: 100px;
}

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

.cookie-accept:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.cookie-reject {
    background: #6b7280;
    color: white;
}

.cookie-reject:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.cookie-customize {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cookie-customize:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.cookie-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

/* Cookie Customization Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    backdrop-filter: blur(2px);
}

.cookie-modal-content {
    background: white;
    width: 90%;
    max-width: 650px;
    margin: 3% auto;
    border-radius: 12px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 2rem;
    background: var(--indigo);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--persimmon);
}

.cookie-intro p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--persimmon);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

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

.cookie-category h4 {
    color: var(--indigo);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-required {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.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.4s;
    border-radius: 30px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

.cookie-category-description {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-category-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.cookie-category-details h5 {
    color: var(--indigo);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-category-details ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-category-details li {
    margin-bottom: 0.3rem;
}

.cookie-modal-footer {
    padding: 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e1e5e9;
}

.cookie-save-btn {
    background: var(--persimmon);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.cookie-save-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        text-align: left;
    }
    
    .cookie-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.8rem 1rem;
    }
    
    .cookie-modal-content {
        margin: 1% auto;
        max-height: 98vh;
        width: 95%;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .cookie-toggle {
        width: 50px;
        height: 25px;
    }
    
    .cookie-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }
    
    .cookie-toggle input:checked + .cookie-slider:before {
        transform: translateX(25px);
    }
}