/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cookie-consent-banner.visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-icon {
    font-size: 24px;
    color: #662D91;
    flex-shrink: 0;
}

.cookie-content {
    flex: 1;
    min-width: 0;
}

.cookie-text {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.cookie-link {
    color: #662D91;
    text-decoration: none;
    font-weight: 600;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.manage-cookies {
    background: none;
    border: none;
    color: #662D91;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 500;
}

.manage-cookies:hover {
    text-decoration: underline;
}

.decline-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.decline-btn:hover {
    background: #000;
}

.allow-all-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

.allow-all-btn:hover {
    background: #45a049;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #eee;
    color: #000;
}

/* Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #eee;
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    margin-top: 0;
    color: #333;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input {
    margin-right: 15px;
}

.cookie-option-content {
    flex: 1;
}

.cookie-option-title {
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.cookie-option-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-preferences-btn {
    background: #662D91;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.save-preferences-btn:hover {
    background: #55257a;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #1a1a1a;
        border-top: 1px solid #333;
    }

    .cookie-text,
    .modal-title,
    .cookie-option-title {
        color: #f0f0f0;
    }

    .cookie-link,
    .manage-cookies {
        color: #bb86fc;
    }

    .cookie-option {
        border: 1px solid #333;
        background: #2a2a2a;
    }

    .cookie-option-desc {
        color: #ccc;
    }

    .modal-content {
        background: #1e1e1e;
    }

    .modal-header,
    .modal-footer {
        border-color: #333;
    }

    .close-btn,
    .modal-close {
        color: #ccc;
    }

    .close-btn:hover,
    .modal-close:hover {
        background: #333;
        color: #fff;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content {
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
    }
}