/**
 * Enhanced Styles for PEEPS Index Page
 * Matching the reference design with random background colors
 */

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #000000;
    line-height: 1.6;
}

#root {
    width: 100%;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.5s ease;
}

/* Navigation Bar - Top Center */
.sc-hKgJUU.kAzHak {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sc-hKgJUU.kAzHak .sc-jSgvzq.hXQVtK {
    display: flex;
    padding: 5px;
    border-radius: 50px;
    background-color: var(--nav-light, #E0F7E0);
    border: 2px solid var(--nav-dark, #1E716A);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    gap: 0;
    align-items: center;
}

.sc-hKgJUU.kAzHak .sc-jSgvzq.hXQVtK li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sc-hKgJUU.kAzHak .sc-jSgvzq.hXQVtK .link {
    font-size: 14px;
    display: block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    color: var(--nav-dark, #1E716A);
    border-radius: 50px;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
    text-align: center;
    white-space: nowrap;
}

.sc-hKgJUU.kAzHak .sc-jSgvzq.hXQVtK .link.active {
    color: #fff;
    background-color: var(--nav-dark, #1E716A);
    border-radius: 50px;
}

.sc-hKgJUU.kAzHak .sc-jSgvzq.hXQVtK .link:hover:not(.active) {
    color: var(--nav-dark, #1E716A);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Social Media Icons - Top Right */
.sc-hKgJUU.kAzHak .sc-bdfBQB.fRUpFr.discord,
.sc-hKgJUU.kAzHak .sc-gsTEea.bUpIAL.twitter {
    position: absolute;
    top: 33px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sc-hKgJUU.kAzHak .sc-bdfBQB.fRUpFr.discord {
    right: 20px;
}

.sc-hKgJUU.kAzHak .sc-gsTEea.bUpIAL.twitter {
    right: 75px;
}

.sc-hKgJUU.kAzHak .sc-bdfBQB.fRUpFr.discord:hover,
.sc-hKgJUU.kAzHak .sc-gsTEea.bUpIAL.twitter:hover {
    transform: scale(1.1);
}

/* Hide duplicate navigation */
.sc-dlfnuX.hCvarC {
    display: none;
}

/* Main Content Area */
.sc-kfzBvY.fonMFi {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 80px;
    background-color: var(--bg-color, #A2F9A8);
}

/* Title Wrapper - Center */
.titleWrapper {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.titleWrapper h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--text-color, #0B6A5D);
    margin: 0 0 20px 0;
    line-height: 1;
    letter-spacing: -4px;
    text-transform: uppercase;
    font-family: "Poppins", sans-serif;
}

.titleWrapper h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color, #0B6A5D);
    margin: 0 0 40px 0;
    line-height: 1.4;
    font-family: "Poppins", sans-serif;
}

/* Buttons */
.presaleButton,
.aboutButton {
    display: inline-block;
    margin: 0 10px 20px;
    text-decoration: none;
}

.sc-kEjbQP.fRFGYa {
    cursor: pointer;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    padding: 12px 45px;
    border-radius: 50px;
    border: 2px solid var(--button-border, #0B6A5D);
    color: var(--button-text, #0B6A5D);
    font-weight: 700;
    background-color: white;
    box-shadow: 3px 3px 0 1px var(--button-shadow, #0B6A5D);
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.sc-kEjbQP.fRFGYa:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 1px var(--button-shadow, #0B6A5D);
}

.sc-kEjbQP.fRFGYa:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0 1px var(--button-shadow, #0B6A5D);
}

/* Character Jumpers */
.mobileJumpers,
.desktopJumpers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.mobileJumpers {
    display: none;
}

.desktopJumpers {
    display: block;
}

.sc-fKFxtB {
    position: absolute;
    will-change: transform;
    transform-origin: center bottom;
}

/* Character Images */
.character {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
}

.shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    opacity: 0.5;
    filter: blur(3px);
    z-index: 1;
}

.mirror {
    position: relative;
    display: inline-block;
}

/* Mobile Navigation Brand */
.mobile-nav-brand {
    display: none;
}

/* Hamburger Menu - Mobile */
.hamburger {
    display: none;
}

/* Responsive Design */
@media (max-width: 800px) {
    .sc-hKgJUU.kAzHak {
        display: none;
    }
    
    .sc-dlfnuX.hCvarC {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        height: 60px;
        padding: 0 15px;
        margin: 0;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        pointer-events: auto;
    }
    
    /* Mobile Navigation Brand - Left Side */
    .mobile-nav-brand {
        display: block;
        font-size: 20px;
        font-weight: 700;
        font-family: "Poppins", sans-serif;
        color: var(--nav-dark, #1E716A);
        text-decoration: none;
        letter-spacing: -0.5px;
        transition: color 0.3s ease;
    }
    
    /* Hamburger Menu - Right Side */
    .hamburger {
        display: block;
        position: relative;
        z-index: 102 !important;
        padding: 15px !important;
        margin: 0 !important;
        background: transparent;
        pointer-events: auto !important;
        cursor: pointer !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Ensure hamburger box and inner elements don't block clicks */
    .hamburger-box,
    .hamburger-inner,
    .hamburger-inner:before,
    .hamburger-inner:after {
        pointer-events: none !important;
    }
    
    .hamburger .hamburger-inner,
    .hamburger .hamburger-inner:before,
    .hamburger .hamburger-inner:after {
        background-color: var(--nav-dark, #1E716A);
        transition: background-color 0.3s ease;
    }
    
    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner:before,
    .hamburger.is-active .hamburger-inner:after {
        background-color: var(--nav-dark, #1E716A);
    }
    
    /* Mobile Menu Container */
    .sc-dlfnuX.hCvarC > .nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--nav-light, #E0F7E0) !important;
        backdrop-filter: blur(10px) !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 99 !important;
        min-height: calc(100vh - 60px);
    }
    
    /* Default hidden state */
    .sc-dlfnuX.hCvarC > .nav:not(.is-active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Active state - shown */
    .sc-dlfnuX.hCvarC > .nav.is-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .sc-dlfnuX.hCvarC .nav li {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .sc-dlfnuX.hCvarC .nav .link {
        display: block;
        padding: 20px 25px;
        text-decoration: none;
        font-size: 18px;
        font-weight: 600;
        color: var(--nav-dark, #1E716A);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        font-family: "Poppins", sans-serif;
        text-align: center;
    }
    
    .sc-dlfnuX.hCvarC .nav .link:last-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .sc-dlfnuX.hCvarC .nav .link.active {
        color: #fff;
        background-color: var(--nav-dark, #1E716A);
    }
    
    .sc-dlfnuX.hCvarC .nav .link:hover:not(.active) {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Social icons container in mobile menu */
    .sc-dlfnuX.hCvarC .nav .nav-social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 0;
        list-style: none;
    }
    
    /* Social icons in mobile menu */
    .sc-dlfnuX.hCvarC .nav .nav-social-icons .sc-bdfBQB.fRUpFr.discord,
    .sc-dlfnuX.hCvarC .nav .nav-social-icons .sc-gsTEea.bUpIAL.twitter {
        display: flex;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        transition: transform 0.2s ease;
    }
    
    .sc-dlfnuX.hCvarC .nav .nav-social-icons .sc-bdfBQB.fRUpFr.discord:hover,
    .sc-dlfnuX.hCvarC .nav .nav-social-icons .sc-gsTEea.bUpIAL.twitter:hover {
        transform: scale(1.1);
    }
    
    /* Hide social icons outside menu in mobile view */
    .sc-dlfnuX.hCvarC > .sc-bdfBQB.fRUpFr.discord,
    .sc-dlfnuX.hCvarC > .sc-gsTEea.bUpIAL.twitter {
        display: none !important;
    }
    
    /* Mobile Content Adjustments */
    .sc-kfzBvY.fonMFi {
        padding-top: 80px;
    }
    
    .titleWrapper h1 {
        font-size: 60px;
        letter-spacing: -1px;
        margin-bottom: 15px;
    }
    
    .titleWrapper h2 {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .sc-kEjbQP.fRFGYa {
        font-size: 14px;
        padding: 12px 30px;
        margin: 8px;
    }
    
    .desktopJumpers {
        display: none;
    }
    
    .mobileJumpers {
        display: block;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .sc-dlfnuX.hCvarC {
        height: 55px;
        padding: 0 12px;
    }
    
    .mobile-nav-brand {
        font-size: 18px;
    }
    
    .sc-dlfnuX.hCvarC > .nav {
        top: 55px !important;
    }
    
    .titleWrapper h1 {
        font-size: 50px;
    }
    
    .titleWrapper h2 {
        font-size: 14px;
    }
    
    .sc-kEjbQP.fRFGYa {
        font-size: 13px;
        padding: 10px 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titleWrapper {
    animation: fadeIn 0.8s ease-out;
}

.titleWrapper h1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.titleWrapper h2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
