/* ==========================================================================
   QuantumSure - Professional Dark Mode SaaS Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

/* main.css */
:root {
    --rage-red: #ff0033;
    --rage-dark: #0a0a0a;
    --rage-gray: #1f1f1f;
    --neon-red: #ff3366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--rage-dark);
    color: #eee;
    font-family: 'VT323', monospace;
    overflow-x: hidden;
    line-height: 1.4;
}

.navbar2 {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 4px solid var(--rage-red);
    position: relative;
    top: 0;
    z-index: 100;
}

.navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 4px solid var(--rage-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.logo-rage {
    color: var(--rage-red);
    text-shadow: 0 0 10px var(--neon-red);
}

.logo-room {
    color: #fff;
}

.solana-badge {
    background: linear-gradient(90deg, #14f195, #9945ff);
    color: black;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-left: 12px;
    font-weight: bold;
    vertical-align: middle;
}

.nav-tabs {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    text-shadow: 0 0 15px var(--neon-red);
}

.login-btn {
    background: transparent;
    color: var(--neon-red);
    border: 3px solid var(--neon-red);
    padding: 12px 28px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--neon-red);
    color: black;
    box-shadow: 0 0 20px var(--neon-red);
}

/* Hero */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    padding-top: 2rem;
}

.rage-badge {
    display: inline-block;
    background: #ff0033;
    color: white;
    padding: 8px 24px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    border: 3px solid #fff;
    transform: rotate(-8deg);
    box-shadow: 8px 8px 0 #000;
}

.tagline {
    font-family: 'Press Start 2P', cursive;
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.glow-red {
    color: var(--neon-red);
    text-shadow:
        0 0 10px var(--neon-red),
        0 0 20px var(--neon-red),
        0 0 40px var(--rage-red);
}

.unavailable {
    font-size: 3rem;
    color: #bbb;
    margin-bottom: 3rem;
    margin-top: 5rem;
    text-align: justify;
}

.soon {
    font-size: 4rem;
    color: #bbb;
    margin-bottom: 3rem;
    margin-top: 10rem;
    text-align: center;
}

.subtitle {
    font-size: 1.6rem;
    color: #bbb;
    max-width: 520px;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.play-now-btn {
    background: var(--rage-red);
    color: white;
    border: none;
    padding: 24px 48px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 0 #990022;
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-now-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 0 #990022;
}

.play-now-btn:active {
    transform: translateY(6px);
    box-shadow: 0 4px 0 #990022;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 3px solid #666;
    padding: 24px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.stats {
    margin-top: 4rem;
    display: flex;
    gap: 4rem;
}

.stat-number {
    font-size: 2.2rem;
    color: var(--neon-red);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #888;
}

/* Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rage-gif-placeholder {
    width: 100%;
    max-width: 520px;
    height: 420px;
    background: linear-gradient(45deg, #330000, #1a0000);
    border: 8px solid var(--rage-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    text-align: center;
    line-height: 1.2;
    box-shadow:
        0 0 40px var(--neon-red),
        inset 0 0 60px rgba(255, 50, 50, 0.3);
    animation: pulse 2s infinite alternate;
}

/* Page Layout Wrapper */
.page-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--rage-red);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-red);
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.content-block p {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #ccc;
    line-height: 1.6;
}

/* FAQ Specific Styles */
.faq-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-item {
    background-color: var(--rage-gray);
    border: 3px solid #333;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover state mimics game button selection */
.faq-item:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

/* Header section containing the question */
.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.4;
}

/* Retro plus/minus toggle indicator */
.faq-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--rage-red);
    transition: transform 0.3s ease;
}

/* Content wrapper that handles the slide animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #ccc;
    line-height: 1.6;
    padding-bottom: 1.5rem;
    border-top: 1px dashed #333;
    padding-top: 1rem;
}

/* Active Open State styles */
.faq-item.active {
    border-color: var(--rage-red);
    background-color: #0d0d0d;
}

.faq-item.active .faq-question {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Turns + into an x indicator */
}

.img-logo {
    width: 300px;
}


@keyframes pulse {
    from { box-shadow: 0 0 40px var(--neon-red), inset 0 0 60px rgba(255,50,50,0.3); }
    to { box-shadow: 0 0 80px #ff6699, inset 0 0 100px rgba(255,100,100,0.6); }
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .tagline {
        font-size: 3.2rem;
    }
}


/* ============== MOBILE MENU ============== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #0a0a0a;
    border-top: 4px solid var(--rage-red);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: #ccc;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 12px 0;
    border-bottom: 2px solid #222;
}

.mobile-login-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
}

/* Hide desktop elements on mobile */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    #desktop-tabs,
    #desktop-login {
        display: none;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 4rem;
        gap: 3rem;
        min-height: auto;
    }

    .tagline {
        font-size: 3rem;
    }

    .stats {
        gap: 2rem;
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 2.6rem;
    }

    .play-now-btn {
        padding: 20px 36px;
        font-size: 1.3rem;
    }
    .subtitle {
        font-size: 1.7rem;
        color: #bbb;
        max-width: 320px;
        margin-bottom: 3rem;
    }
}


/* --- Responsive Adjustments for About/FAQ Pages --- */
@media (max-width: 768px) {
    .page-container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-block h2 {
        font-size: 1.2rem;
    }

    .content-block p {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }

    .content-block {
        margin-bottom: 2rem;
    }
}

/* Mobile Responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 1.3rem;
    }

    .faq-header {
        padding: 1.2rem;
    }
}

.cnvs {
    margin-right: 1%;
}

@media (max-width: 760px) {
    .solana-badge {
        display: none;
    }
    .img-logo {
        width: 250px;
    }
}

.toggle-container {
    display: flex;
    background: #1a1a1a;
    border: 3px solid #333;
    border-radius: 9999px;
    padding: 6px;
    margin-bottom: 2rem;
    width: fit-content;
}

.toggle-btn {
    padding: 12px 32px;
    background: transparent;
    color: #888;
    border: none;
    border-radius: 9999px;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--rage-red);
    color: white;
    box-shadow: 0 0 15px var(--neon-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: 60px 1fr 140px;
    gap: 12px;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
}

.stat-item {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 2px solid #333;
    padding: 14px 20px;
    transition: all 0.2s;
}

.stat-item:hover {
    border-color: var(--neon-red);
    background: #222;
}

.rank {
    color: var(--rage-red);
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
}

.wallet {
    color: #ccc;
    flex: 1;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.6rem;
    margin-left: 10px;
}

.score {
    color: #fff;
    text-align: right;
    font-weight: bold;
    font-size: 2rem;
}

/* Make entries larger */
.leaderboard-container {
    margin-top: 1rem;
}

.stats-grid {
    gap: 8px;
}

@media (max-width: 760px) {
    .wallet {
        font-size: 1.4rem;
    }
    .score {
        font-size: 1.8rem;
    }
    .rank {
        font-size: 1.8rem;
    }
}


.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #1a1a1a;
    border: 3px solid #333;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--neon-red);
}

.stat-label {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.8rem;
    color: var(--neon-red);
    font-weight: bold;
}


.trailer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.trailer-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.trailer-content video {
  width: 100%;
  border-radius: 8px;
  background: black;
}

.close-trailer {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close-trailer:hover {
  color: var(--rage-red);
}
