/**
 * COOKIE CONSENT BANNER
 * GDPR-compliant cookie consent management
 */

/* Cookie Banner Container */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__title {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.cookie-consent__text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}

.cookie-consent__text a {
    color: #635BFF;
    text-decoration: underline;
}

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

.cookie-consent__button {
    flex: 1;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    text-align: center;
}

.cookie-consent__button--accept {
    background: #635BFF;
    color: white;
}

.cookie-consent__button--accept:hover {
    background: #4F46E5;
    transform: translateY(-1px);
}

.cookie-consent__button--decline {
    background: #f3f4f6;
    color: #374151;
}

.cookie-consent__button--decline:hover {
    background: #e5e7eb;
}

/* Skip to Content Link (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #635BFF;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }
    
    .cookie-consent__buttons {
        flex-direction: column;
    }
    
    .cookie-consent__button {
        width: 100%;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cookie-consent {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent__button,
    .skip-to-content {
        transition: none;
    }
}
