/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie consent UI
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-top: 2px solid #00ff41;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 255, 65, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: 'Courier New', monospace;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    color: #00ff41;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.cookie-consent-text p {
    color: #b8c5d6;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #00ff41;
    text-decoration: none;
    border-bottom: 1px dotted #00ff41;
    transition: border-color 0.2s ease;
}

.cookie-consent-text a:hover {
    border-bottom-color: transparent;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-actions .btn-primary,
.cookie-consent-actions .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.cookie-consent-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.5);
}

.cookie-consent-actions .btn-secondary {
    background: transparent;
    color: #00ff41;
    border: 2px solid #00ff41;
}

.cookie-consent-actions .btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
}

.cookie-consent-details {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.cookie-category {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid #00ff41;
    border-radius: 4px;
}

.cookie-category label {
    display: block;
    cursor: pointer;
    color: #b8c5d6;
}

.cookie-category input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #00ff41;
}

.cookie-category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category strong {
    color: #00ff41;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-category p {
    margin: 0.5rem 0 0 2rem;
    font-size: 0.85rem;
    color: #8a9cb0;
}

.cookie-consent-custom-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.cookie-consent-custom-actions .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
    transition: all 0.2s ease;
}

.cookie-consent-custom-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-actions .btn-primary,
    .cookie-consent-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }
}

/* Focus states for accessibility */
.cookie-consent-actions button:focus,
.cookie-consent-custom-actions button:focus {
    outline: 3px solid #00ff41;
    outline-offset: 2px;
}

.cookie-category input[type="checkbox"]:focus {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }

    .cookie-consent-actions button {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top-width: 3px;
    }

    .cookie-consent-text a {
        border-bottom-width: 2px;
    }

    .cookie-category {
        border-left-width: 4px;
    }
}
