/* ====================================
   MOBILE NAVIGATION
   ==================================== */

.mobile-menu-toggle {
    display: none;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

/* Desktop - ensure hamburger is always hidden on larger screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .desktop-only {
        display: inline-flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide desktop Discord button, show mobile one in menu */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    .nav-container,
    .lb-nav-container {
        position: relative;
        grid-template-columns: auto auto;
    }

    .nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 1, 24, 0.98) 0%, rgba(26, 11, 46, 0.98) 100%);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid rgba(139, 92, 246, 0.4);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-center.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.8rem;
        text-align: left;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(139, 92, 246, 0.2);
        transform: translateX(5px);
    }

    .nav-link.active {
        background: rgba(139, 92, 246, 0.3);
        border-left: 3px solid var(--purple);
    }

    .lb-nav-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(10, 1, 24, 0.98) 0%, rgba(26, 11, 46, 0.98) 100%);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 1.5rem 2rem;
        gap: 0.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid rgba(139, 92, 246, 0.4);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .lb-nav-center.active {
        right: 0;
    }

    .lb-nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 0.8rem;
        text-align: left;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .lb-nav-link:hover {
        background: rgba(139, 92, 246, 0.2);
        transform: translateX(5px);
    }

    .lb-nav-link.active {
        background: rgba(139, 92, 246, 0.3);
        border-left: 3px solid var(--purple);
    }

    .mobile-only.discord-btn,
    .mobile-only.lb-discord-btn {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* ====================================
   TABLET (768px - 1024px)
   ==================================== */
@media (max-width: 1024px) {
    .hero-section {
        padding: 7rem 2rem 3rem;
        min-height: 80vh;
    }

    .main-title-home {
        font-size: clamp(4rem, 12vw, 8rem);
    }

    .bonuses-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .lb-podium {
        gap: 1rem;
    }

    .lb-entries-grid {
        gap: 0.8rem;
    }
}

/* ====================================
   MOBILE (max-width: 768px)
   ==================================== */
@media (max-width: 768px) {
    /* NAVBAR */
    .navbar,
    .lb-navbar {
        padding: 1rem 5%;
    }

    .nav-container,
    .lb-nav-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .logo,
    .lb-logo {
        font-size: 1.3rem;
    }

    .logo img,
    .lb-logo img {
        height: 40px;
    }

    /* HOME HERO */
    .hero-section {
        padding: 8rem 1.5rem 2rem;
        min-height: 70vh;
    }

    .main-title-home {
        font-size: clamp(3.5rem, 15vw, 6rem);
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .cta-btn {
        width: auto;
        min-width: 240px;
        max-width: 320px;
        padding: 1.1rem 2rem;
        white-space: nowrap;
    }

    .scroll-indicator {
        margin-top: 2rem;
    }

    /* BONUSES */
    .bonuses-section {
        padding: 3rem 1.5rem;
    }

    .bonuses-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
    }

    .bonuses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bonus-card {
        min-height: auto;
        padding: 3rem 1.5rem 1.5rem;
    }

    .bonus-title {
        font-size: 1.4rem;
    }

    .bonus-steps li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    /* STREAMS */
    .streams-section {
        padding: 3rem 1.5rem;
    }

    .streams-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .streams-subtitle {
        font-size: 1rem;
    }

    .stream-embed iframe {
        min-height: 300px;
    }

    /* LEADERBOARD */
    .lb-container {
        padding: 8rem 1rem 2rem;
    }

    .lb-header {
        margin-bottom: 2rem;
    }

    .lb-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .lb-subtitle {
        font-size: 0.95rem;
    }

    .lb-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .lb-btn {
        width: auto;
        min-width: 240px;
        max-width: 320px;
    }

    /* PODIUM */
    .lb-podium {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .lb-podium-card {
        margin-top: 0 !important;
    }

    .lb-podium-card.first,
    .lb-podium-card.second,
    .lb-podium-card.third {
        min-height: auto;
    }

    .lb-avatar {
        width: 80px;
        height: 80px;
    }

    .lb-player-name {
        font-size: 1rem;
    }

    /* TIMER */
    .lb-timer-section {
        margin-bottom: 2rem;
    }

    .lb-timer-container {
        padding: 1.5rem 1rem;
    }

    .lb-timer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .lb-timer {
        gap: 0.5rem;
    }

    .lb-timer-box {
        min-width: 60px;
    }

    .lb-timer-value {
        font-size: 1.8rem;
    }

    .lb-timer-label {
        font-size: 0.7rem;
    }

    .lb-timer-separator {
        font-size: 1.5rem;
    }

    /* ENTRIES */
    .lb-entries {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--purple) rgba(139, 92, 246, 0.1);
    }

    /* Custom scrollbar for webkit browsers (Chrome, Safari, Edge) */
    .lb-entries::-webkit-scrollbar {
        height: 6px;
    }

    .lb-entries::-webkit-scrollbar-track {
        background: rgba(139, 92, 246, 0.1);
        border-radius: 10px;
    }

    .lb-entries::-webkit-scrollbar-thumb {
        background: var(--purple);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

    .lb-entries::-webkit-scrollbar-thumb:hover {
        background: var(--pink);
    }

    .lb-entries-header {
        display: none;
    }

    .lb-entry {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        text-align: center;
    }

    .lb-entry-rank {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .lb-entry-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .lb-entry-info {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .lb-entry-wager,
    .lb-entry-prize {
        text-align: center;
        flex: 1;
    }

    .lb-entry-wager::before {
        content: 'Wagered: ';
        color: var(--text-gray);
        font-size: 0.8rem;
        display: block;
    }

    .lb-entry-prize::before {
        content: 'Prize: ';
        color: var(--text-gray);
        font-size: 0.8rem;
        display: block;
    }

    /* FOOTER */
    .lb-footer {
        padding: 2rem 1.5rem;
    }

    .lb-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .lb-footer-warning {
        font-size: 0.85rem;
    }

    .lb-footer-warning h4,
    .lb-footer-links h4,
    .lb-footer-social h4 {
        font-size: 1rem;
    }

    .lb-footer-links,
    .lb-footer-social {
        align-items: center;
    }

    .lb-footer-links a,
    .lb-footer-social a {
        font-size: 0.9rem;
    }

    .lb-footer-bottom {
        font-size: 0.85rem;
    }

    /* MODAL */
    .lb-modal {
        padding: 1rem;
    }

    .lb-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
        max-width: 100%;
    }

    .lb-modal-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .lb-step {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .lb-step-num {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lb-step-content h3 {
        font-size: 1rem;
    }

    .lb-step-content p {
        font-size: 0.9rem;
    }
}

/* ====================================
   SMALL MOBILE (max-width: 480px)
   ==================================== */
@media (max-width: 480px) {
    .navbar,
    .lb-navbar {
        padding: 1rem 4%;
    }

    .logo,
    .lb-logo {
        font-size: 1.1rem;
    }

    .logo img,
    .lb-logo img {
        height: 35px;
    }

    .main-title-home {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .bonuses-title,
    .streams-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .bonus-card {
        padding: 2.5rem 1rem 1rem;
    }

    .bonus-title {
        font-size: 1.3rem;
    }

    .bonus-steps li {
        font-size: 0.85rem;
    }

    .lb-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .lb-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .lb-avatar {
        width: 70px;
        height: 70px;
    }

    .lb-timer-value {
        font-size: 1.5rem;
    }

    .lb-timer-box {
        min-width: 50px;
    }

    .lb-entry {
        padding: 0.8rem;
    }

    .lb-footer {
        padding: 1.5rem 1rem;
    }

    .lb-modal-content {
        padding: 1.5rem 1rem;
    }
}
