/**
 * Landing Page Styles
 * 
 * Poker/meme-coin aesthetic with distinct background from the game page.
 * Responsive design for mobile, tablet, and desktop.
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Face Declaration */
@font-face {
    font-family: "Rostenfly";
    src: url("/fonts/Rostenfly.woff2") format("woff2"),
         url("/fonts/Rostenfly.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rostenfly", Arial, sans-serif;    
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    
    /* 
     * Landing page background - distinct from game page
     * Replace with your custom background image in /public/backgrounds/
     * or modify the gradient below
     */
    background-image: url("/backgrounds/re3.png");
    background-size: cover;
    background-position: center;
}

/* Animated background pattern overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.02) 50px,
            rgba(255, 255, 255, 0.02) 51px
        );
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to bottom, rgb(0 0 0 / 61%), transparent);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    background: rgb(0 0 0 / 45%);
    border: 1px solid rgb(46 255 0 / 47%);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

.nav-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn:focus {
    outline: none;
}

.hamburger-btn:focus .hamburger-line {
    background-color: #4CAF50;
}

/* Hamburger animation when open */
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #0d3712 0%, #1a3a52 100%);
    padding: 80px 20px 30px;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    outline: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.landing-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 60px;
}

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    gap: 30px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgb(255 206 9 / 73%));
    }
    50% {
        filter: drop-shadow(0 0 50px rgb(255 101 0 / 60%));
    }
}

/* CTA Section */
.cta-section {
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    gap: 70px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.cta-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.cta-spectator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.cta-spectator:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.cta-verify {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.cta-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.6);
}

.ca {
    display: inline-block; /* needed for transform */
    color: rgb(251 244 219 / 90%);
    font-size: 1.8rem;
    font-weight: 900;
    padding: 0px 0px 20px 0px;
    animation: textPulse 1.5s ease-in-out infinite;

}

@keyframes textPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

    

/* CTA Image Buttons */
.cta-image {
    max-width: 150px;
    height: auto;
    cursor: pointer;
    animation: Glow 3s ease-in-out infinite;
}

@keyframes Glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgb(255 255 255 / 59%));
    }
    50% {
        filter: drop-shadow(0 0 20px rgb(243 22 124 / 60%));
    }
}


.cta-image:hover {
    transform: translateY(-5px) scale(1.07);
}

.cta-image:active {
    transform: translateY(-2px) scale(1.02);
}

.cta-image:focus {
    outline: none;
}

/* Info Sections */
.info-sections {
    display: grid;
    grid-template-columns: repeat(center, minmax(300px, 1fr 1fr));
    gap: 25px;
    max-width: 650px;
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.info-card {
    background: linear-gradient(135deg, rgba(30, 60, 90, 0.6) 0%, rgba(42, 82, 112, 0.6) 100%);
    border-radius: 50px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: cardGlow 15s ease-in-out infinite;
}
@keyframes cardGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgb(255 255 255 / 59%));
    }
    50% {
        filter: drop-shadow(0 0 20px rgb(243 161 22 / 60%));
    }
}


.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.info-heading {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffe489;
    text-shadow: 0 4px 5px rgb(0 0 0 / 87%);
}

.info-content {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.info-image1 {
    width: 70%;
    margin-bottom: 15px;
    margin-left: 50%;
    display: flex;
    justify-content: center;
    transform: translateX(-50%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   VERIFY WALLET MODAL
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal-panel {
    position: relative;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    animation: modalSlideIn 0.3s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

.modal-content {
    text-align: center;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.modal-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.modal-message strong {
    color: #ffd700;
    font-weight: 700;
}

.wallet-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.wallet-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.wallet-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.wallet-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.5);
}

.wallet-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.modal-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .top-nav {
        padding: 15px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .landing-main {
        padding: 80px 15px 40px;
    }

    .main-logo {
        max-width: 500px;
    }
    .ca {
        padding: 0px 0px 30px 0px;
    }

    .cta-buttons {
        scale: .8;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 30px;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
    }

    .info-sections {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 25px;
    }

    .info-heading {
        font-size: 1.3rem;
    }

    .modal-panel {
        padding: 30px 20px;
        margin: 20px;
    }

    .wallet-options {
        flex-direction: column;
        align-items: center;
    }

    .wallet-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .main-logo {
        max-width: 340px;
    }

    .cta-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
    .ca {
        font-size: 1.2rem;
    }

    .cta-image {
        max-width: 170px;
    }

    .info-card {
        padding: 20px;
    }

    .info-heading {
        font-size: 1.2rem;
    }

    .info-content {
        font-size: 0.95rem;
    }

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

    .modal-message {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .cta-image {
        max-width: 130px;
    }

/* Large Desktop */
@media (min-width: 1200px) {
    .landing-main {
        padding-top: 120px;
    }

    .main-logo {
        max-width: 650px;
    }

    .info-sections {
        gap: 40px;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link,
    .mobile-nav-link,
    .cta-btn,
    .wallet-btn {
        border-width: 2px;
    }

    .info-card {
        border-width: 3px;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid #4CAF50;
    outline-offset: 2px;
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

}