/* Cookie Consent Banner Styles */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.98));
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.cookie-consent-visible {
    transform: translateY(0);
}

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

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

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 0.5rem;
}

.cookie-consent-description {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-link {
    color: #a855f7;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-link:hover {
    color: #c084fc;
}

/* Button Container */
.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:focus {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #9333ea, #db2777);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.cookie-btn-essential {
    background: rgba(107, 114, 128, 0.8);
    color: white;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.cookie-btn-essential:hover {
    background: rgba(75, 85, 99, 0.9);
    border-color: rgba(156, 163, 175, 0.5);
}

.cookie-btn-decline {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(55, 65, 81, 0.5);
    border-color: rgba(209, 213, 219, 0.5);
}

/* Notification Toast */
.cookie-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #f3f4f6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}

.cookie-notification-visible {
    opacity: 1;
    transform: translateX(0);
}

.cookie-notification-success {
    border-color: rgba(34, 197, 94, 0.5);
}

.cookie-notification-info {
    border-color: rgba(59, 130, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .cookie-consent-text {
        min-width: 100%;
    }
    
    .cookie-consent-title {
        font-size: 1.1rem;
    }
    
    .cookie-consent-description {
        font-size: 0.875rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem;
        text-align: center;
    }
    
    .cookie-notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-title {
        font-size: 1rem;
    }
    
    .cookie-consent-description {
        font-size: 0.813rem;
    }
}

/* Accessibility */
.cookie-consent-banner:focus-within {
    border-top-color: #a855f7;
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top-width: 3px;
    }
    
    .cookie-btn {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-notification,
    .cookie-btn {
        transition: none !important;
    }
}
