/* Consent Banner Styles - Matching Bookerei's Earth-Toned Theme */

#consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(250, 237, 205, 0.98), rgba(244, 232, 208, 0.98));
    backdrop-filter: blur(10px);
    border-top: 3px solid #d4a373;
    box-shadow: 0 -4px 20px rgba(107, 78, 3, 0.15);
    z-index: 9999;
    padding: 1.5rem;
    animation: slideUp 0.4s ease-out;
}

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

.consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consent-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.consent-icon {
    font-size: 2.5rem;
    color: #8b6914;
    flex-shrink: 0;
}

.consent-text {
    flex: 1;
    min-width: 250px;
}

.consent-text h4 {
    color: #6b4e03;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.consent-text p {
    color: #8b6914;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.consent-text a {
    color: #0d6efd;
    text-decoration: underline;
    font-weight: 500;
}

.consent-text a:hover {
    color: #0a58ca;
}

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

.consent-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.consent-btn-primary {
    background: linear-gradient(45deg, #d4a373, #8b6914);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.3);
}

.consent-btn-primary:hover {
    background: linear-gradient(45deg, #8b6914, #6b4e03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.4);
}

.consent-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #8b6914;
    border: 2px solid #d4a373;
}

.consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #8b6914;
    transform: translateY(-2px);
}

.consent-btn-link {
    background: transparent;
    color: #8b6914;
    padding: 0.65rem 1rem;
    text-decoration: underline;
}

.consent-btn-link:hover {
    color: #6b4e03;
}

/* Responsive Design */
@media (max-width: 768px) {
    #consent-banner {
        padding: 1rem;
    }

    .consent-content {
        gap: 1rem;
    }

    .consent-icon {
        font-size: 2rem;
    }

    .consent-text h4 {
        font-size: 1rem;
    }

    .consent-text p {
        font-size: 0.85rem;
    }

    .consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .consent-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .consent-content {
        text-align: center;
    }

    .consent-icon {
        display: none;
    }

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

    .consent-btn {
        width: 100%;
    }
}

/* Print: Hide consent banner */
@media print {
    #consent-banner {
        display: none !important;
    }
}

/* Accessibility */
.consent-btn:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #consent-banner {
        animation: none;
    }
    
    .consent-btn {
        transition: none;
    }
}
