/* ========================================
   Landing Page Styles
   80's Disco Theme - Entry Experience
   ======================================== */

/* ========================================
   Landing Page Specific Overrides
   ======================================== */
.landing-page {
    overflow: hidden;
}

/* ========================================
   Animated Background
   ======================================== */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Starfield effect */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFFFFF;
    box-shadow:
        100px 200px #FFFFFF,
        200px 100px #FFFFFF,
        300px 300px #FFFFFF,
        400px 150px #FFFFFF,
        150px 400px #FFFFFF,
        500px 250px #FFFFFF,
        250px 500px #FFFFFF,
        350px 450px #FFFFFF,
        450px 350px #FFFFFF,
        100px 500px #FFFFFF,
        500px 100px #FFFFFF,
        200px 350px #00FFFF,
        350px 200px #FF1493,
        450px 450px #39FF14,
        50px 50px #FFFF00,
        550px 550px #FF00FF,
        80px 300px #FFFFFF,
        300px 80px #FFFFFF,
        180px 220px #FFFFFF,
        420px 120px #FFFFFF,
        120px 420px #FFFFFF,
        280px 380px #00FFFF,
        380px 280px #FF1493,
        480px 180px #39FF14,
        180px 480px #FFFF00,
        320px 520px #FFFFFF,
        520px 320px #FFFFFF,
        240px 140px #FFFFFF,
        140px 240px #FFFFFF,
        360px 540px #FFFFFF,
        540px 360px #FFFFFF,
        60px 460px #00FFFF,
        460px 60px #FF1493,
        260px 260px #39FF14,
        160px 360px #FFFFFF,
        360px 160px #FFFFFF;
    animation: twinkle 3s infinite ease-in-out;
}

.stars::after {
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Animated grid lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 255, 0.1) 50px,
            rgba(0, 255, 255, 0.1) 52px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 20, 147, 0.1) 50px,
            rgba(255, 20, 147, 0.1) 52px
        );
    perspective: 500px;
    transform-style: preserve-3d;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translateY(0) rotateX(60deg);
    }
    100% {
        transform: translateY(50px) rotateX(60deg);
    }
}

/* ========================================
   Container
   ======================================== */
.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 40px;
}

/* ========================================
   Logo/Title Section
   ======================================== */
.landing-logo {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.landing-title {
    margin-bottom: 20px;
}

.title-line-1,
.title-line-2 {
    display: block;
    font-size: 36px;
    line-height: 1.3;
    text-transform: uppercase;
}

.title-line-1 {
    color: #FF00FF;
    text-shadow:
        0 0 5px #FF00FF,
        0 0 15px #FF00FF;
    animation: titlePulse 2s ease-in-out infinite;
}

.title-line-2 {
    color: #A0E7FF;
    text-shadow:
        0 0 5px #A0E7FF,
        0 0 15px #A0E7FF;
    animation: titlePulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-wrapper {
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.landing-subtitle {
    font-size: 12px;
    color: #39FF14;
    text-shadow: 0 0 8px #39FF14;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Enter Button
   ======================================== */
.enter-button-wrapper {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.enter-button {
    position: relative;
    display: inline-block;
    padding: 25px 60px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    background: linear-gradient(135deg, #FFFF00 0%, #39FF14 100%);
    border: 5px solid #FFFFFF;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 0 30px rgba(255, 255, 0, 0.8),
        0 0 40px rgba(57, 255, 20, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.button-text {
    position: relative;
    z-index: 1;
}

.enter-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 40px rgba(255, 255, 0, 1),
        0 0 50px rgba(57, 255, 20, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
}

.enter-button:active {
    transform: scale(0.95);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button pulsing animation */
@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.enter-button {
    animation: fadeInUp 1s ease-out 0.8s both, buttonFloat 3s ease-in-out 2s infinite;
}

/* ========================================
   Warning Section
   ======================================== */
.warning {
    text-align: center;
    animation: fadeIn 2s ease-out 1.2s both;
}

.warning-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.warning-text {
    font-size: 16px;
    color: #FF1493;
    text-shadow: 0 0 8px #FF1493;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.warning-subtext {
    font-size: 10px;
    color: #FFFFFF;
    opacity: 0.7;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.landing-footer {
    position: absolute;
    bottom: 20px;
    text-align: center;
    animation: fadeIn 2.5s ease-out 1.5s both;
}

.landing-footer p {
    font-size: 12px;
    color: #A0E7FF;
    text-shadow: 0 0 5px #A0E7FF;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Small mobile devices */
@media (max-width: 360px) {
    .title-line-1,
    .title-line-2 {
        font-size: 28px;
    }

    .landing-subtitle {
        font-size: 10px;
    }

    .enter-button {
        font-size: 18px;
        padding: 20px 40px;
    }

    .warning-text {
        font-size: 14px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .title-line-1,
    .title-line-2 {
        font-size: 48px;
    }

    .landing-subtitle {
        font-size: 14px;
        max-width: 400px;
    }

    .enter-button {
        font-size: 28px;
        padding: 30px 80px;
    }

    .warning-text {
        font-size: 18px;
    }

    .warning-subtext {
        font-size: 12px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .title-line-1,
    .title-line-2 {
        font-size: 56px;
    }

    .landing-subtitle {
        font-size: 16px;
        max-width: 500px;
    }

    .enter-button {
        font-size: 32px;
        padding: 35px 100px;
    }

    .landing-container {
        gap: 50px;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .stars::before,
    .stars::after,
    .grid-lines,
    .title-line-1,
    .title-line-2,
    .enter-button,
    .warning-icon {
        animation: none !important;
    }
}
