/* Redot Engine Website - Global Styles */

/* ===== Base ===== */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure MudBlazor containers respect viewport width */
.mud-container {
    max-width: 100vw !important;
}

/* ===== Announcement Banner ===== */
.announcement-banner {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    padding: 10px 24px;
    text-align: center;
    z-index: 1100;
    position: relative;
}

.announcement-banner a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-banner a:hover {
    text-decoration: underline !important;
}

.announcement-banner .highlight {
    font-weight: 700;
}

/* ===== Hero Section ===== */
.hero-bg {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

/* ===== Download Hero ===== */
.download-hero {
    background: url('https://image.redotengine.org/background.png') center/cover no-repeat;
    border-radius: 12px;
    margin: 0 20px;
    position: relative;
}

@media (min-width: 1024px) {
    .download-hero {
        margin: 0 160px;
    }
}



/* ===== Platform Card Hover ===== */
.platform-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 140, 56, 0.3) !important;
}

/* ===== Section Backgrounds ===== */
.section-dark {
    background-color: #0e0e0e;
}

.section-gradient {
    background: linear-gradient(180deg, #0e0e0e 0%, #0a0a0a 100%);
}

/* ===== Footer ===== */
.site-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #F28C38 !important;
}

/* ===== Feature Card Hover ===== */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(242, 140, 56, 0.12) !important;
    border-color: rgba(242, 140, 56, 0.3) !important;
}

/* ===== Mobile Navigation ===== */
/* Default: Desktop visible, mobile hidden */
.desktop-nav {
    display: flex;
}

.mobile-menu-btn {
    display: none;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Reduce container padding on mobile */
    .mud-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    /* Smaller hero text on mobile */
    .hero-bg h1, .section-dark h1, .section-dark h2 {
        font-size: 1.75rem;
    }
    
    /* Ensure buttons are touch-friendly */
    .mud-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Footer links touch targets */
    .site-footer a {
        display: inline-block;
        padding: 8px 0;
        min-height: 44px;
    }
    
    /* Mobile nav drawer improvements */
    .mud-drawer {
        width: 280px;
    }
    
    .mud-nav-link {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    /* Mobile: Hide desktop nav, show mobile button */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ===== Marquee ===== */
.marquee-container {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Feature Highlight Icons ===== */
.feature-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #7c1d1d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-highlight-grid {
    padding: 64px 0;
    position: relative;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Blazor Error Boundary ===== */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}
