/* Cookie Consent Banner Styles */
/* GDPR & CCPA Compliant Design */
/* vlasits.dev */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(42, 45, 48, 0.98) 0%, rgba(35, 36, 38, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid rgba(195, 0, 45, 0.5);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 20px;
    color: #e5e7eb;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-icon {
    flex-shrink: 0;
    color: #c3002d;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.cookie-consent-description {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.cookie-consent-link {
    color: #c3002d;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-consent-link:hover {
    color: #e61146;
    text-decoration: none;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cookie-consent-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-consent-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #c3002d 0%, #a00025 100%);
    color: #ffffff;
    position: relative;
}

.cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #e61146 0%, #c3002d 100%);
    box-shadow: 0 4px 12px rgba(195, 0, 45, 0.5);
    transform: translateY(-2px);
}

.cookie-consent-btn-accept:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(195, 0, 45, 0.3);
}

.cookie-consent-btn-decline {
    background: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.cookie-consent-btn-decline:hover {
    background: rgba(107, 114, 128, 0.5);
    border-color: rgba(107, 114, 128, 0.7);
    color: #ffffff;
    transform: translateY(-2px);
}

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

.cookie-consent-btn-settings {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(195, 0, 45, 0.5);
}

.cookie-consent-btn-settings:hover {
    background: rgba(195, 0, 45, 0.1);
    border-color: #c3002d;
    color: #c3002d;
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cookie-consent-icon {
        margin: 0 auto;
    }

    .cookie-consent-text {
        min-width: unset;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-description {
        font-size: 13px;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px;
    }

    .cookie-consent-title {
        font-size: 15px;
    }

    .cookie-consent-description {
        font-size: 12px;
    }

    .cookie-consent-btn {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Accessibility improvements */
.cookie-consent-btn:focus {
    outline: 2px solid #c3002d;
    outline-offset: 2px;
}

.cookie-consent-btn:focus:not(:focus-visible) {
    outline: none;
}

.cookie-consent-btn:focus-visible {
    outline: 2px solid #c3002d;
    outline-offset: 2px;
}

/* Dark mode support (already dark, but future-proof) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: linear-gradient(135deg, rgba(42, 45, 48, 0.98) 0%, rgba(35, 36, 38, 0.98) 100%);
    }
}

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

    .cookie-consent-icon {
        animation: none;
    }
}
