/* ============================================
   Landing Page - Home CSS
   Ramadhan Edition 🌙
   ============================================ */

/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(74, 125, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 14, 26, 0.97), rgba(26, 35, 66, 0.9)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,215,0,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
    animation: rotate-slow 30s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--navy-darkest), transparent);
    z-index: 1;
}

/* === Ramadhan Decorations === */
.ramadhan-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.crescent-moon {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow:
        inset -15px 5px 0 0 #ffd700,
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.1);
    animation: moon-glow 4s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes moon-glow {

    0%,
    100% {
        box-shadow: inset -15px 5px 0 0 #ffd700, 0 0 30px rgba(255, 215, 0, 0.3);
        opacity: 0.7;
    }

    50% {
        box-shadow: inset -15px 5px 0 0 #ffd700, 0 0 50px rgba(255, 215, 0, 0.5);
        opacity: 0.9;
    }
}

.star {
    position: absolute;
    color: #ffd700;
    animation: star-twinkle 3s ease-in-out infinite;
    font-size: 1rem;
    opacity: 0.5;
}

.star-1 {
    top: 5%;
    right: 25%;
    animation-delay: 0s;
    font-size: 0.8rem;
}

.star-2 {
    top: 12%;
    right: 8%;
    animation-delay: 0.5s;
    font-size: 1.2rem;
}

.star-3 {
    top: 3%;
    right: 18%;
    animation-delay: 1s;
    font-size: 0.6rem;
}

.star-4 {
    top: 15%;
    right: 30%;
    animation-delay: 1.5s;
    font-size: 0.7rem;
}

.star-5 {
    top: 8%;
    right: 35%;
    animation-delay: 2s;
    font-size: 0.9rem;
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

.lantern {
    position: absolute;
    font-size: 2.5rem;
    animation: lantern-swing 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.4));
    opacity: 0.6;
}

.lantern-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.lantern-2 {
    top: 0;
    right: 5%;
    animation-delay: 1.5s;
    font-size: 2rem;
}

@keyframes lantern-swing {

    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(5px);
    }
}

/* Ramadhan badge */
.ramadhan-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ramadhan-badge span {
    font-size: 1rem;
    vertical-align: middle;
}

/* === MLBB Character Image === */
.hero-character-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-float 4s ease-in-out infinite;
}

.hero-character-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(74, 125, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-character-img {
    max-height: 550px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px rgba(74, 125, 255, 0.3)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.hero-character-img:hover {
    transform: scale(1.03);
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 125, 255, 0.15);
    border: 1px solid rgba(74, 125, 255, 0.3);
    color: var(--blue-bright);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* === Countdown Timer === */
.countdown-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--navy-darkest), var(--navy-dark), var(--navy-darkest));
    position: relative;
}

.countdown-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.countdown-item:hover {
    border-color: var(--blue-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.countdown-item .number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--blue-bright);
    line-height: 1;
    display: block;
}

.countdown-item .label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* === Prize Pool === */
.prize-section {
    padding: 5rem 0;
    background: var(--navy-darkest);
    position: relative;
}

.prize-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.prize-card.gold {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(26, 35, 66, 0.6));
}

.prize-card.gold:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-8px) scale(1.02);
}

.prize-card .prize-rank {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.prize-card .prize-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.prize-card .prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* === Schedule Section === */
.schedule-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--navy-darkest), var(--navy-dark));
}

.schedule-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.schedule-item:hover {
    border-color: var(--blue-glow);
    transform: translateX(5px);
}

.schedule-date {
    min-width: 80px;
    text-align: center;
    padding: 0.75rem;
    background: rgba(74, 125, 255, 0.15);
    border-radius: var(--radius-md);
}

.schedule-date .day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-bright);
    display: block;
}

.schedule-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* === Rules Section === */
.rules-section {
    padding: 5rem 0;
    background: var(--navy-darkest);
}

.rule-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.rule-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.03);
}

.rule-card .rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

/* === Sponsors Section === */
.sponsors-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--navy-dark), var(--navy-darkest));
}

.sponsor-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: var(--transition-normal);
}

.sponsor-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* === FAQ Section === */
.faq-section {
    padding: 5rem 0;
    background: var(--navy-darkest);
}

.faq-item .accordion-button {
    background: var(--navy-dark) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    box-shadow: none !important;
    padding: 1rem 1.5rem;
}

.faq-item .accordion-button::after {
    filter: invert(70%) sepia(30%) saturate(1000%) hue-rotate(190deg);
}

.faq-item .accordion-button:not(.collapsed) {
    background: rgba(74, 125, 255, 0.1) !important;
    border-color: var(--blue-glow);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.faq-item .accordion-body {
    background: var(--navy-dark);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 1.25rem 1.5rem;
}

.faq-item {
    margin-bottom: 0.75rem;
}

/* === CTA Section === */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-main));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 125, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.1), transparent 50%);
}

/* === Slots Counter === */
.slots-counter {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: inline-block;
}

.slots-counter .slots-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
}

.slots-counter .slots-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Responsive === */

/* --- Tablet --- */
@media (max-width: 992px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-character-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .countdown-grid {
        gap: 0.75rem;
    }

    .prize-card .prize-amount {
        font-size: 2rem;
    }

    /* Hide Ramadhan decorations on tablet for cleaner look */
    .ramadhan-star {
        opacity: 0.3;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn-glow,
    .hero-buttons .btn-gold,
    .hero-buttons a[class*="btn"] {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .slots-counter {
        padding: 1rem 1.5rem;
    }

    .slots-counter .slots-number {
        font-size: 1.8rem;
    }

    /* Countdown */
    .countdown-grid {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }

    .countdown-item .number {
        font-size: 1.75rem;
    }

    .countdown-item .label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Prizes */
    .prize-section {
        padding: 3rem 0;
    }

    .prize-card {
        padding: 1.25rem;
    }

    .prize-card .prize-amount {
        font-size: 1.3rem;
    }

    .prize-card .prize-icon {
        font-size: 2rem;
    }

    /* Schedule */
    .schedule-section {
        padding: 3rem 0;
    }

    .schedule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }

    .schedule-item .schedule-date {
        min-width: auto;
    }

    /* Rules */
    .rules-section {
        padding: 3rem 0;
    }

    /* FAQ */
    .faq-section {
        padding: 3rem 0;
    }

    .faq-item .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .faq-item .accordion-body {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* CTA */
    .cta-section {
        padding: 3rem 0;
    }

    /* Ramadhan decorations — hide on mobile */
    .ramadhan-lantern,
    .ramadhan-star {
        display: none;
    }

    .ramadhan-moon {
        width: 40px;
        height: 40px;
        top: 5%;
        right: 5%;
    }

    /* Sponsor */
    .sponsor-box {
        height: 150px;
        padding: 12px;
    }

    .sponsor-logo {
        max-height: 120px;
    }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 0 2rem;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.5rem;
    }

    .countdown-item .number {
        font-size: 1.4rem;
    }

    .prize-card .prize-amount {
        font-size: 1.1rem;
    }

    .slots-counter .slots-number {
        font-size: 1.4rem;
    }

    .sponsor-box {
        height: 120px;
    }

    .sponsor-logo {
        max-height: 90px;
    }
}

.sponsor-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sponsor-logo {
    max-width: 90%;
    max-height: 180px;
    object-fit: contain;
}