/* Banner Component Styles */
.site-banner {
    background-color: var(--primary);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
    z-index: 100;
}

.site-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.site-banner-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-banner-title {
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.site-banner-content-text {
    font-size: 0.9rem;
    font-weight: 400;
}

.site-banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.site-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.site-banner-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.site-banner-close i {
    width: 18px;
    height: 18px;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-banner.fade-out {
    animation: slideUp 0.3s ease-in forwards;
}

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

/* Banner Modal Styles */
.banner-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.banner-modal-overlay.visible {
    opacity: 1;
}

.banner-modal {
    background-color: #ffffff;
    color: var(--text-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-modal-overlay.visible .banner-modal {
    transform: scale(1);
    opacity: 1;
}

.banner-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-modal-text {
    text-align: center;
}

.banner-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: block;
}

.banner-modal-content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.banner-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.banner-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.banner-modal-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.banner-modal-checkbox-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.banner-modal-checkbox:hover {
    color: var(--text-primary);
}

.banner-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.banner-modal-close:hover {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.banner-modal-close:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.banner-modal-close i {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .site-banner-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .site-banner-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .site-banner-text {
        font-size: 0.9rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .site-banner-content {
        padding: 1rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .site-banner-text {
        font-size: 0.85rem;
        line-height: 1.3;
        text-align: left;
        padding-right: 2rem;
    }

    .site-banner-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
    }

    .site-banner-close i {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .banner-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .banner-modal-title {
        font-size: 1.25rem;
    }

    .banner-modal-content-text {
        font-size: 0.95rem;
    }

    .banner-modal-checkbox {
        font-size: 0.85rem;
    }

    .banner-modal-checkbox input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-banner {
        border-bottom: 2px solid white;
    }
    
    .site-banner-close:focus {
        outline: 3px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .site-banner {
        animation: none;
    }
    
    .site-banner.fade-out {
        animation: none;
        opacity: 0;
        transform: translateY(-100%);
    }
    
    .site-banner-close {
        transition: none;
    }

    .banner-modal-overlay,
    .banner-modal {
        transition: none;
    }
}
