/* Cookie Banner CSS - RNFAI */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 2px solid #1e3a8a;
}

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

.cookie-banner .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #93c5fd;
}

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

/* Cookie Banner Buttons */
.cookie-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #1e3a8a;
    color: white;
    border: 2px solid #1e3a8a;
}

.cookie-btn-accept:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: #d1d5db;
    border: 2px solid #4b5563;
}

.cookie-btn-reject:hover {
    background-color: #4b5563;
    color: white;
    border-color: #6b7280;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
}

.cookie-btn-customize:hover {
    background-color: #60a5fa;
    color: #111827;
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-modal-header h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #111827;
    background-color: #f3f4f6;
}

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

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

.cookie-category-title {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.cookie-category.required .cookie-category-title::after {
    content: " (Required)";
    color: #6b7280;
    font-weight: 400;
    font-size: 0.875rem;
}

.cookie-category-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.cookie-category-details {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.4;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #1e3a8a;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #f3f4f6;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.cookie-modal-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-modal-btn-save {
    background-color: #1e3a8a;
    color: white;
}

.cookie-modal-btn-save:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
}

.cookie-modal-btn-cancel {
    background-color: #f3f4f6;
    color: #6b7280;
}

.cookie-modal-btn-cancel:hover {
    background-color: #e5e7eb;
    color: #374151;
}

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

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.625rem 1rem;
    }
    
    .cookie-modal-content {
        padding: 1rem;
    }
    
    .cookie-category {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .cookie-modal {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000000;
        border-top: 3px solid #ffffff;
    }
    
    .cookie-btn-accept {
        background-color: #000000;
        border-color: #ffffff;
    }
    
    .cookie-btn-reject,
    .cookie-btn-customize {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal,
    .cookie-modal-content,
    .cookie-btn,
    .cookie-toggle-slider,
    .cookie-toggle-slider:before {
        transition: none;
    }
}