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

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff8c00;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1.5rem;
}

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

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

.cookie-consent-text {
    margin-bottom: 1.5rem;
}

.cookie-consent-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-title i {
    color: #ff8c00;
    font-size: 1.5rem;
}

.cookie-consent-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
}

/* Button Styles */
.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn i {
    font-size: 0.9rem;
}

.cookie-btn-primary {
    background: #ff8c00;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.cookie-btn-secondary {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.cookie-btn-secondary:hover {
    background: #475569;
    border-color: #64748b;
}

.cookie-btn-link {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-link:hover {
    color: #ff8c00;
    border-color: #ff8c00;
}

/* Detailed Options */
.cookie-consent-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

.cookie-consent-details.hidden {
    display: none;
}

.cookie-category {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(51, 65, 85, 0.3);
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #ff8c00;
}

.cookie-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-name i {
    color: #ff8c00;
    font-size: 1.1rem;
}

.cookie-category-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 2rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Links */
.cookie-consent-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cookie-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.cookie-link-separator {
    color: #475569;
}

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

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

    .cookie-consent-description {
        font-size: 0.875rem;
    }

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

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

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

    .cookie-consent-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-checkbox:focus,
.cookie-link:focus {
    outline: 2px solid #ff8c00;
    outline-offset: 2px;
}

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

.cookie-consent-banner.show {
    animation: slideUp 0.3s ease-out;
}

/* Hidden utility */
.hidden {
    display: none !important;
}
