/**
 * Bastion Scan Cookie Consent Banner Styles
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 24px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    animation: slideUp 0.4s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

.cookie-consent-banner.cookie-consent-hide {
    animation: slideDown 0.3s ease-in forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text {
    margin-bottom: 16px;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #10B981;
}

.cookie-consent-text p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 900px;
}

.cookie-learn-more {
    color: #10B981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.cookie-learn-more:hover {
    color: #059669;
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-details {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-consent-details h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #10B981;
}

.cookie-category {
    margin-bottom: 16px;
}

.cookie-category strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 6px;
}

.cookie-category p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #cccccc;
}

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

    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 14px;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Feature blocking overlay (optional) */
body.cookies-declined .requires-cookies {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

body.cookies-declined .requires-cookies::after {
    content: '🍪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}
