/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9999;
    max-width: 380px;
    padding: 28px 32px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-consent.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-consent.hiding {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.3s ease,
                visibility 0.3s ease,
                transform 0.3s ease;
}

/* Corner accents */
.cookie-consent::before,
.cookie-consent::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.cookie-consent::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.cookie-consent::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.cookie-consent.active::before,
.cookie-consent.active::after {
    opacity: 1;
}

/* Label */
.cookie-consent-label {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 10px;
    color: white;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    transform: translateX(-10px);
    opacity: 0;
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.cookie-consent.active .cookie-consent-label {
    opacity: 0.4;
    transform: translateX(0);
}

/* Message */
.cookie-consent-message {
    font-family: "Lexend";
    font-size: 14px;
    line-height: 1.6;
    color: white;
    opacity: 0.7;
    margin-bottom: 24px;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.cookie-consent.active .cookie-consent-message {
    opacity: 0.7;
    transform: translateY(0);
}

.cookie-consent-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.cookie-consent-link:hover {
    border-color: white;
}

/* Actions */
.cookie-consent-actions {
    display: flex;
    gap: 12px;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

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

/* Buttons */
.cookie-consent-btn {
    position: relative;
    font-family: "Lexend";
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.cookie-consent-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.cookie-consent-btn span {
    position: relative;
    z-index: 1;
}

/* Accept button */
.cookie-consent-accept {
    background: white;
    color: black;
}

.cookie-consent-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

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

/* Decline button */
.cookie-consent-decline {
    background: transparent;
    color: white;
    opacity: 0.5;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-consent-decline:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-decline::before {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-consent-decline:hover::before {
    transform: scaleX(1);
}

/* Subtle pulse on the accept button to draw attention */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.1);
    }
}

.cookie-consent.active .cookie-consent-accept {
    animation: subtle-glow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.cookie-consent-accept:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
        padding: 24px;
    }
}

@media (max-width: 400px) {
    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent,
    .cookie-consent-label,
    .cookie-consent-message,
    .cookie-consent-actions,
    .cookie-consent-btn,
    .cookie-consent::before,
    .cookie-consent::after {
        transition: opacity 0.1s ease;
        transform: none !important;
        animation: none !important;
    }

    .cookie-consent.active {
        transform: none;
    }
}
