/* Cookie Consent Banner Styling */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent.show {
    display: flex;
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-consent-description {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #28b8f7;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-link:hover {
    color: #5dcbff;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cookie-btn {
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-btn-accept-all {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-accept-all:hover {
    background-color: #0042a0;
}

.cookie-btn-accept-necessary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn-accept-necessary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn-customize {
    background-color: transparent;
    color: white;
    text-decoration: underline;
}

.cookie-btn-customize:hover {
    text-decoration: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 2rem;
}

.cookie-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.cookie-modal-close:hover {
    color: #333;
}

.cookie-modal-body {
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.cookie-category-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.cookie-category-description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider, .cookie-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.cookie-slider:before, .cookie-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider,
.cookie-switch input:checked + .cookie-switch-slider {
    background-color: var(--primary-color);
}

.cookie-switch input:disabled + .cookie-slider,
.cookie-switch input:disabled + .cookie-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-switch input:checked + .cookie-slider:before,
.cookie-switch input:checked + .cookie-switch-slider:before {
    transform: translateX(24px);
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.cookie-btn-save {
    background-color: var(--primary-color);
    color: white;
}

.cookie-btn-save:hover {
    background-color: #0042a0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
}
