/**
 * Cookie Consent Banner Styles
 */

/* Reset any potential parent transforms */
body > .cookie-banner,
html > body > .cookie-banner {
    transform: none !important;
    position: fixed !important;
}

.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, rgba(106, 92, 184, 0.98) 0%, rgba(148, 139, 207, 0.98) 100%);
    color: white;
    z-index: 2147483647 !important; /* Maximum z-index */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out forwards;
    backdrop-filter: blur(10px);
    display: none !important; /* Hidden by default, shown by JavaScript */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transform-origin: bottom center !important;
}

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

/* Ensure banner stays in place after animation */
.cookie-banner.visible,
.cookie-banner[style*="display: block"] {
    animation: none !important;
    transform: translateY(0) !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #f8f9fa;
}

.cookie-banner a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner a:hover {
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #ff8c42 0%, #ffa500 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
    background: linear-gradient(135deg, #ffa500 0%, #ff8c42 100%);
}

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

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: none !important;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .cookie-banner p {
        font-size: 13px;
        width: 100%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 150px;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .cookie-banner {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    border-top: 1px solid rgba(148, 139, 207, 0.3);
}

[data-theme="dark"] .cookie-banner p {
    color: #e0e0e0;
}

[data-theme="dark"] .cookie-btn-reject {
    background: rgba(148, 139, 207, 0.1);
    border-color: rgba(148, 139, 207, 0.3);
    color: #e0e0e0;
}

[data-theme="dark"] .cookie-btn-reject:hover {
    background: rgba(148, 139, 207, 0.2);
    border-color: rgba(148, 139, 207, 0.5);
}