/* Cookie Banner Styles - Pure CSS Implementation */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--deep-navy);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #E2E8F0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

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

.cookie-btn.reject {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid #4B5563;
}

.cookie-btn.reject:hover {
    background: #374151;
    color: var(--white);
}

.cookie-btn.customize {
    background: transparent;
    color: var(--emerald);
    border: 1px solid var(--emerald);
}

.cookie-btn.customize:hover {
    background: var(--emerald);
    color: var(--white);
}

.cookie-link {
    color: var(--emerald);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Hide banner functionality using CSS checkbox hack */
.cookie-banner-toggle {
    display: none;
}

.cookie-banner-toggle:checked + .cookie-banner {
    display: none;
}

/* Cookie Modal - Pure CSS Implementation */
.cookie-modal-toggle {
    display: none;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-toggle:checked + .cookie-modal {
    display: flex;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin: 0 0 20px 0;
    color: var(--deep-navy);
    font-size: 1.5rem;
    font-weight: 700;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 50px;
    height: 24px;
    background: #CBD5E0;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--emerald);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
    background: #9CA3AF;
    cursor: not-allowed;
}

.cookie-info strong {
    display: block;
    color: var(--deep-navy);
    font-weight: 600;
    margin-bottom: 5px;
}

.cookie-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

.cookie-modal-buttons .cookie-btn {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-content p {
        font-size: 0.8125rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        max-width: 120px;
        min-width: 70px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content p {
        font-size: 0.75rem;
    }
    
    .cookie-btn {
        font-size: 0.8125rem;
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .cookie-buttons {
        gap: 8px;
    }
    
    .cookie-link {
        font-size: 0.8125rem;
        padding: 6px 8px;
    }
}