/*
 * Cookie Banner Extension for Flipbook
 * 
 * This CSS file adds a GDPR-compliant cookie banner with background blur
 * 
 * To integrate: Add this line to your HTML head:
 * <link rel="stylesheet" href="cookie-banner-extension/cookie-banner.css" />
 */

/* Cookie banner overlay */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Hide overlay when not needed */
.cookie-banner-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Cookie banner container */
.cookie-banner {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.cookie-banner-overlay.hidden .cookie-banner {
    transform: scale(0.9);
}

/* Cookie banner text */
.cookie-banner-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333333;
    margin-bottom: 25px;
    text-align: left;
}

/* Button container */
.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie banner buttons */
.cookie-banner-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

/* Necessary cookies button (secondary) */
.cookie-banner-button.necessary {
    background-color: #f5f5f5;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.cookie-banner-button.necessary:hover {
    background-color: #e8e8e8;
    border-color: #b0b0b0;
}

.cookie-banner-button.necessary:active {
    transform: translateY(1px);
    background-color: #e0e0e0;
}

/* Accept all button (primary) */
.cookie-banner-button.accept {
    background-color: #007aff;
    color: #ffffff;
    border: 1px solid #007aff;
}

.cookie-banner-button.accept:hover {
    background-color: #0056cc;
    border-color: #0056cc;
}

.cookie-banner-button.accept:active {
    transform: translateY(1px);
    background-color: #004499;
}

/* Responsive design */
@media (max-width: 480px) {
    .cookie-banner {
        margin: 20px;
        padding: 25px 20px;
    }
    
    .cookie-banner-text {
        font-size: 15px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-banner-button {
        width: 100%;
        min-width: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-banner {
        border: 2px solid #000000;
    }
    
    .cookie-banner-button.necessary {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner-overlay,
    .cookie-banner,
    .cookie-banner-button {
        transition: none;
    }
    
    .cookie-banner-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
