/**
 * Cookie Consent Styles
 * Modern, GDPR-compliant design
 */

/* Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    transition: bottom 0.4s ease-in-out;
    border-top: 3px solid #000000;
}

.cookie-consent-banner.cookie-consent-visible {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.cookie-consent-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #000000;
}

.cookie-consent-body {
    margin-bottom: 20px;
}

.cookie-consent-body p {
    margin: 0 0 8px 0;
    color: #666666;
    line-height: 1.6;
    font-size: 14px;
}

.cookie-consent-learn-more a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cookie-consent-learn-more a:hover {
    opacity: 0.7;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Button Styles */
.cookie-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-primary {
    background: #000000;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background: transparent;
    color: #000000;
}

.cookie-btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* Modal Styles */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-modal.cookie-consent-visible {
    opacity: 1;
}

.cookie-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-consent-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-dialog .cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-consent-dialog .cookie-consent-header h3 {
    margin: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close-btn:hover {
    color: #000000;
}

.cookie-consent-dialog .cookie-consent-body {
    padding: 24px;
    margin-bottom: 0;
}

.cookie-consent-dialog .cookie-consent-actions {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e5e5;
    justify-content: flex-end;
}

/* Cookie Categories */
.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-desc {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-left: 60px;
}

/* Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #cccccc;
    border-radius: 24px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

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

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background-color: #000000;
}

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

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle-label {
    margin-left: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

/* Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 9999;
}

.cookie-settings-btn:hover {
    background: #333333;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 20px;
    }

    .cookie-consent-header h3 {
        font-size: 20px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent-dialog {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-category-desc {
        padding-left: 0;
        margin-top: 8px;
    }

    .cookie-settings-btn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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