/* ================================================
   Enhanced Home Page Styles - Simplified & Robust
   ================================================ */

/* Page Specific Override */
#page-home {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 1. Hero Section Container (Full Width Background) */
.home-hero-section {
    width: 100%;
    /* Full viewport width background */
    background: linear-gradient(135deg, rgba(15, 17, 20, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    position: relative;
    padding: 60px 0;
    /* Vertical padding only */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Animated Background Effects */
.home-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(152, 28, 19, 0.15) 0%, transparent 60%);
    animation: rotateGlow 15s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.home-hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* 2. Content Wrapper (Centered Content) */
.home-content-wrapper {
    width: 100%;
    max-width: 1600px;
    /* Limit content width for readability */
    margin: 0 auto;
    /* Center in viewport */
    padding: 0 var(--spacing-xl);
    /* Safe area padding */
    position: relative;
    z-index: 2;
    /* Above background effects */
}

/* 3. Hero Grid (2-Column Layout) */
.hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    /* Reduced gap to bring sections closer */
    width: 100%;
}

.hero-left {
    flex: 1;
    /* Less flex weight to give more space to the wide card */
    max-width: 600px;
    text-align: left;
}

.hero-right {
    flex: 1.5;
    /* Increased flex weight for a wider card */
    display: flex;
    justify-content: flex-end;
    width: auto;
    /* Let it expand */
    max-width: 900px;
}

/* Hero Elements */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge span {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-title .gradient-text {
    font-family: 'Knewave', system-ui;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-btn {
    padding: 12px 28px;
    /* Slightly tighter */
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), #ff4d4d);
    color: white;
    box-shadow: 0 10px 20px rgba(152, 28, 19, 0.3);
    border: none;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(152, 28, 19, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ================================================
   🚀 FLASHY CREATOR BOX (LAUNCH EVENT CARD)
   ================================================ */

.launch-event-card {
    background: linear-gradient(165deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(212, 255, 0, 0.4);
    border-radius: 20px;
    padding: 1.5rem 2rem !important;
    /* Shorter padding */
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 255, 0, 0.05);
    width: 100%;
    animation: fadeInDown 0.8s ease-out 0.4s backwards;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Horizontal Layout Helpers */
.card-body-horizontal {
    display: flex;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.card-col-left {
    flex: 0 0 auto;
}

.card-col-right {
    flex: 1;
}

.launch-event-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4FF00, transparent);
    z-index: 1;
}

.launch-badge-glow {
    background: #D4FF00;
    color: #000;
    font-size: 0.65rem;
    /* Smaller */
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    /* Reduced */
    display: inline-block;
}

.launch-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.5rem !important;
    /* Shorter header area */
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: 0px !important;
    line-height: 1 !important;
}

.reward-highlight {
    margin: 10px 0 !important;
    /* Tighter */
    padding: 12px;
    background: rgba(212, 255, 0, 0.03);
    border-radius: 10px;
}

.reward-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.reward-amount {
    font-size: 3.2rem !important;
    font-weight: 900;
    color: #D4FF00 !important;
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 255, 0, 0.5);
}

.launch-detail {
    font-size: 0.9rem !important;
    /* Tighter */
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

.launch-detail strong {
    color: #fff;
    font-weight: 700;
}

.launch-countdown-ticker {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-flex;
    /* Not full width */
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.countdown-label {
    font-size: 0.7rem;
    color: #D4FF00;
    font-weight: 800;
    letter-spacing: 1px;
}

.countdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    /* Scaled down */
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.creator-actions {
    display: flex !important;
    gap: 12px !important;
}

.launch-join-btn {
    background: #D4FF00 !important;
    color: #000 !important;
    font-weight: 900 !important;
    height: 44px !important;
    border-radius: 10px !important;
    padding: 0 24px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.launch-join-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(212, 255, 0, 0.4);
}

.discord-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    height: 44px !important;
    border-radius: 10px !important;
    padding: 0 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* ================================================
   Main Section & Marquee
   ================================================ */

.home-main-section {
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Marquee */
.community-marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 25px 0;
    /* Reduced */
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    /* Reduced */
}

.marquee-track {
    display: flex;
    gap: 15px;
    width: max-content;
    will-change: transform;
    animation: marquee 60s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 7.5px));
    }
}

/* Featured Updates */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.update-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.update-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.update-image {
    height: 240px;
    width: 100%;
    background: var(--bg-tertiary);
    object-fit: cover;
}

.update-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.update-tag.new {
    background: var(--accent-primary);
}

.update-tag.feature {
    background: var(--accent-info);
}

.update-content {
    padding: 30px;
    flex: 1;
}

.update-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.update-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 8px;
}

.update-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1280px) {
    .header-nav {
        display: none !important;
    }

    .hero-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        max-width: 1000px;
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .card-body-horizontal {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .card-col-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .creator-actions {
        justify-content: center;
    }

    .reward-amount {
        font-size: 2.8rem !important;
    }
}

@media (max-width: 768px) {
    .home-hero-section {
        padding: 40px 0;
    }

    .home-content-wrapper {
        padding: 0 var(--spacing-lg);
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .reward-amount {
        font-size: 2.4rem !important;
    }

    .updates-grid {
        grid-template-columns: 1fr;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .launch-badge-glow {
        font-size: 0.6rem;
    }

    .launch-title {
        font-size: 1.3rem !important;
    }

    .reward-amount {
        font-size: 2rem !important;
    }

    .countdown-value {
        font-size: 1.1rem;
    }

    .home-content-wrapper {
        padding: 0 var(--spacing-md);
    }
}