/* ============================================
   GDPR Cookie Consent Popup Styles
   ============================================ */

/* Overlay */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    pointer-events: none;
    animation: fadeIn 0.4s ease-in-out;
}

.cookie-consent-overlay.show {
    display: flex;
    pointer-events: auto;
}

/* Container */
.cookie-consent-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
    padding: 30px;
    animation: slideUp 0.4s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Content */
.cookie-consent-content {
    text-align: center;
}

.cookie-consent-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-consent-description {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 25px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Buttons */
.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    outline: none;
}

.cookie-btn-accept {
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cookie-btn-accept:hover {
    background: #5558e3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.cookie-btn-reject {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cookie-btn-reject:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.cookie-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ============================================
   Cookie Customization Modal
   ============================================ */

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}

.cookie-category-info p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.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%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #6366f1;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 25px 20px;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
    
    .cookie-consent-overlay {
        padding: 0;
    }
    
    .cookie-consent-title {
        font-size: 20px;
    }
    
    .cookie-consent-description {
        font-size: 14px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .cookie-modal-content {
        border-radius: 16px;
        margin: 10px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category-header {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-title {
        font-size: 18px;
    }
    
    .cookie-consent-description {
        font-size: 13px;
    }
    
    .cookie-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .cookie-modal-header h3 {
        font-size: 18px;
    }
    
    .cookie-category-info h4 {
        font-size: 15px;
    }
    
    .cookie-category-info p {
        font-size: 13px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .cookie-consent-overlay,
    .cookie-modal {
        display: none !important;
    }
}
