/**
 * Cookie Consent Banner Styles
 * GDPR-compliant, beautiful, and accessible
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent-banner.show {
    display: block;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-consent-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

.cookie-consent-text a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn:active {
    transform: translateY(0);
}

.cookie-consent-btn-accept {
    background: white;
    color: #667eea;
}

.cookie-consent-btn-accept:hover {
    background: #f7f7f7;
}

.cookie-consent-btn-reject {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cookie-consent-btn-reject:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Settings link */
.cookie-consent-settings {
    margin-top: 0.5rem;
}

.cookie-consent-settings-link {
    color: white;
    font-size: 0.875rem;
    text-decoration: underline;
    opacity: 0.9;
    cursor: pointer;
}

.cookie-consent-settings-link:hover {
    opacity: 1;
}

/* Floating settings button (for users who want to change their choice) */
.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9998;
    transition: all 0.3s ease;
    display: none;
}

.cookie-settings-trigger.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 0.875rem;
    }
    
    .cookie-settings-trigger {
        bottom: 15px;
        left: 15px;
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Accessibility */
.cookie-consent-btn:focus,
.cookie-consent-settings-link:focus,
.cookie-settings-trigger:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    }
}

