/* LOL.FUN - Scribbly Meme Launchpad Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b9d;
    --secondary: #c44dff;
    --accent: #00d4ff;
    --yellow: #ffed4e;
    --green: #4dff88;
    --bg-dark: #1a1a2e;
    --bg-light: #f0f0f0;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
}

body {
    font-family: 'Comic Neue', cursive, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Scribbly Background */
.scribbly-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        linear-gradient(135deg,
            rgba(255, 107, 157, 0.6) 0%,
            rgba(196, 77, 255, 0.5) 20%,
            rgba(0, 212, 255, 0.5) 40%,
            rgba(255, 237, 78, 0.6) 60%,
            rgba(77, 255, 136, 0.5) 80%,
            rgba(255, 107, 157, 0.6) 100%
        );
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
}

#scribble-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.nav-link {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 var(--text-dark);
}

.nav-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
    background: var(--yellow);
}

.nav-link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text-dark);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pages */
.page {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
}

.main-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 50%;
    border: 5px solid var(--text-dark);
    box-shadow: 8px 8px 0 var(--text-dark);
    animation: bounce 2s ease-in-out infinite;
    background: white;
}

.logo-container.small .nav-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--text-dark);
    background: white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Typography */
.title {
    font-family: 'Permanent Marker', cursive;
    font-size: 4rem;
    color: var(--text-dark);
    text-shadow: 4px 4px 0 var(--primary), 8px 8px 0 var(--secondary);
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.tagline {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    opacity: 0.8;
}

.page-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    text-shadow: 3px 3px 0 var(--primary);
    margin-bottom: 15px;
}

.page-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.4rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 40px;
    background: var(--yellow);
    border: 4px solid var(--text-dark);
    border-radius: 30px;
    box-shadow: 6px 6px 0 var(--text-dark);
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--text-dark);
    background: var(--green);
}

.cta-button:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--text-dark);
}

/* Waitlist Form */
.waitlist-form {
    max-width: 400px;
    margin: 0 auto 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Comic Neue', cursive;
    font-size: 1.1rem;
    border: 3px solid var(--text-dark);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 4px 4px 0 var(--text-dark);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text-dark);
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    background: var(--primary);
    border: 4px solid var(--text-dark);
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--text-dark);
    background: var(--secondary);
    color: white;
}

.submit-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--text-dark);
}

.btn-emoji {
    font-size: 1.5rem;
}

/* Success Message */
.waitlist-success {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    border: 4px solid var(--text-dark);
    box-shadow: 6px 6px 0 var(--text-dark);
    max-width: 400px;
    margin: 0 auto 30px;
}

.waitlist-success.hidden {
    display: none;
}

.success-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
}

.waitlist-success h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Waitlist Stats */
.waitlist-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stat {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--text-dark);
}

.stat-number {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    display: block;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 35px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--text-dark);
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--text-dark);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    min-width: 140px;
}

.social-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--text-dark);
    background: var(--accent);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.social-card span {
    font-family: 'Permanent Marker', cursive;
    font-size: 1rem;
}

/* Events */
.upcoming-events h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.event-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--text-dark);
    display: inline-flex;
    gap: 20px;
    align-items: center;
}

.event-date {
    font-family: 'Permanent Marker', cursive;
    color: var(--primary);
    font-size: 1.2rem;
}

.event-name {
    font-weight: 700;
}

/* Lore */
.lore-content {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.lore-chapter {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 30px;
    border-radius: 20px;
    border: 3px solid var(--text-dark);
    box-shadow: 5px 5px 0 var(--text-dark);
    margin-bottom: 20px;
}

.lore-chapter h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.lore-chapter p {
    line-height: 1.8;
    margin-bottom: 10px;
}

.lore-emoji {
    font-size: 2rem;
    text-align: center;
    margin-top: 15px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer p {
    opacity: 0.7;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.footer-social:hover {
    transform: scale(1.1);
    background: var(--primary);
}

/* Trailer Placeholder */
.trailer-placeholder {
    background: rgba(255, 255, 255, 0.9);
    padding: 60px 40px;
    border-radius: 20px;
    border: 4px solid var(--text-dark);
    box-shadow: 6px 6px 0 var(--text-dark);
    max-width: 500px;
    margin: 0 auto 40px;
}

.play-icon {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border: 4px solid var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 4px 4px 0 var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-icon:hover {
    transform: scale(1.1);
    background: var(--secondary);
    color: white;
}

.trailer-placeholder p {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 2.2rem;
        text-shadow: 3px 3px 0 var(--primary), 5px 5px 0 var(--secondary);
    }

    .main-logo {
        width: 150px;
        height: 150px;
        border-width: 4px;
        box-shadow: 5px 5px 0 var(--text-dark);
    }

    .logo-container.small .nav-logo {
        width: 70px;
        height: 70px;
    }

    .nav {
        gap: 10px;
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
        box-shadow: 3px 3px 0 var(--text-dark);
    }

    .tagline {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 12px 25px;
        box-shadow: 4px 4px 0 var(--text-dark);
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Waitlist mobile */
    .waitlist-form {
        padding: 0 10px;
    }

    .form-group input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .submit-btn {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .waitlist-stats {
        gap: 15px;
    }

    .stat {
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Social cards mobile */
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .social-card {
        width: 100%;
        max-width: 250px;
        padding: 20px 25px;
    }

    .social-icon {
        font-size: 2rem;
    }

    /* Trailer mobile */
    .trailer-placeholder {
        padding: 40px 25px;
        margin: 0 auto 30px;
    }

    .play-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }

    .trailer-placeholder p {
        font-size: 1rem;
    }

    /* Lore mobile */
    .lore-content {
        padding: 0 5px;
    }

    .lore-chapter {
        padding: 20px;
    }

    .lore-chapter h3 {
        font-size: 1.2rem;
    }

    .lore-chapter p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Footer mobile */
    .footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .title {
        font-size: 1.8rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .main-logo {
        width: 120px;
        height: 120px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Scribble pattern overlay */
.scribbly-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10 Q 20 5, 35 15 T 65 10 T 95 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' opacity='0.15'/%3E%3Cpath d='M0 35 Q 15 28, 30 38 T 60 32 T 90 40 T 100 35' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' opacity='0.12'/%3E%3Cpath d='M5 60 Q 25 52, 45 62 T 75 55 T 95 65' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' opacity='0.15'/%3E%3Cpath d='M0 85 Q 20 78, 40 88 T 70 82 T 100 90' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' opacity='0.12'/%3E%3Ccircle cx='15' cy='25' r='2' fill='%23000' opacity='0.1'/%3E%3Ccircle cx='75' cy='45' r='1.5' fill='%23000' opacity='0.1'/%3E%3Ccircle cx='45' cy='75' r='2' fill='%23000' opacity='0.1'/%3E%3Ccircle cx='85' cy='85' r='1.5' fill='%23000' opacity='0.1'/%3E%3Cpath d='M20 45 Q 22 42, 25 45 T 30 43' fill='none' stroke='%23000' stroke-width='1' opacity='0.1'/%3E%3Cpath d='M60 70 Q 63 67, 68 71 T 75 68' fill='none' stroke='%23000' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: scribbleMove 12s linear infinite;
}

.scribbly-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 20 C 20 10, 30 30, 40 20 S 60 30, 70 20' fill='none' stroke='%23ff6b9d' stroke-width='1' stroke-linecap='round' opacity='0.2'/%3E%3Cpath d='M5 50 C 15 40, 25 60, 35 50 S 55 60, 75 50' fill='none' stroke='%23c44dff' stroke-width='1' stroke-linecap='round' opacity='0.2'/%3E%3Cpath d='M15 75 C 25 65, 35 85, 45 75 S 65 85, 75 75' fill='none' stroke='%2300d4ff' stroke-width='1' stroke-linecap='round' opacity='0.2'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: scribbleMove2 18s linear infinite reverse;
}

@keyframes scribbleMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes scribbleMove2 {
    0% { background-position: 0 0; }
    100% { background-position: -80px 80px; }
}