/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin: 0;
    padding: 0;
}

/* Prevent white flash on load */
html {
    background: #000000;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Animated Background with Floating Wizards */
.home-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, #1a0033 0%, #000000 100%);
    /* Ensure background is visible immediately */
    opacity: 1;
}

.wizard-float {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    filter: blur(1px);
}

.wizard-1 { background-image: url('/gallery/pixil-frame-0 (38).png'); top: 10%; left: 5%; animation-delay: 0s; }
.wizard-2 { background-image: url('/gallery/pixil-frame-0 (42).png'); top: 20%; right: 10%; animation-delay: 2s; }
.wizard-3 { background-image: url('/gallery/pixil-frame-0 (44).png'); top: 50%; left: 15%; animation-delay: 4s; }
.wizard-4 { background-image: url('/gallery/pixil-frame-0 (57).png'); top: 70%; right: 20%; animation-delay: 6s; }
.wizard-5 { background-image: url('/gallery/pixil-frame-0 (67).png'); bottom: 10%; left: 25%; animation-delay: 8s; }
.wizard-6 { background-image: url('/gallery/pixil-frame-0 (73).png'); top: 30%; left: 50%; animation-delay: 10s; }
.wizard-7 { background-image: url('/gallery/pixil-frame-0 (83).png'); top: 60%; right: 5%; animation-delay: 12s; }
.wizard-8 { background-image: url('/gallery/pixil-frame-0 (84).png'); bottom: 20%; right: 30%; animation-delay: 14s; }
.wizard-9 { background-image: url('/gallery/pixil-frame-0 (87).png'); top: 80%; left: 40%; animation-delay: 16s; }
.wizard-10 { background-image: url('/gallery/pixil-frame-0 - 2025-11-22T104317.953.png'); top: 40%; right: 40%; animation-delay: 18s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) translateX(-20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) translateX(20px) rotate(3deg);
    }
}

/* Home Content */
.home-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.home-header {
    margin-bottom: 4rem;
}

.home-logo {
    font-size: 5rem;
    color: #a855f7;
    text-shadow:
        6px 6px 0px #6b21a8,
        12px 12px 0px #4c1d95,
        0 0 40px rgba(168, 85, 247, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow:
            6px 6px 0px #6b21a8,
            12px 12px 0px #4c1d95,
            0 0 40px rgba(168, 85, 247, 0.5);
    }
    50% {
        text-shadow:
            6px 6px 0px #6b21a8,
            12px 12px 0px #4c1d95,
            0 0 60px rgba(168, 85, 247, 0.8);
    }
}

.home-tagline {
    font-size: 1rem;
    color: #a855f7;
    letter-spacing: 0.2em;
}

/* Home Navigation */
.home-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.home-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: #8b9e4d;
    color: #000000;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    text-decoration: none;
    border: 6px solid #000000;
    box-shadow:
        inset -6px -6px 0px rgba(0, 0, 0, 0.4),
        inset 6px 6px 0px rgba(255, 255, 255, 0.3),
        8px 8px 0px #000000,
        0 0 20px rgba(139, 158, 77, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 300px;
}

.home-button:hover {
    transform: translate(4px, 4px);
    box-shadow:
        inset -6px -6px 0px rgba(0, 0, 0, 0.4),
        inset 6px 6px 0px rgba(255, 255, 255, 0.3),
        4px 4px 0px #000000,
        0 0 30px rgba(139, 158, 77, 0.8);
}

.home-button:active {
    transform: translate(8px, 8px);
    box-shadow:
        inset -6px -6px 0px rgba(0, 0, 0, 0.6),
        inset 6px 6px 0px rgba(255, 255, 255, 0.1);
}

/* Home Credits - Bottom Edge */
.home-credits {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-end;
}

.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-label {
    font-size: 0.7rem;
    color: #a855f7;
    letter-spacing: 0.1em;
    margin: 0;
    text-align: center;
}

.social-link {
    padding: 0.8rem 1.5rem;
    background: #10b981;
    color: #000000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-decoration: none;
    border: 4px solid #000000;
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2),
        4px 4px 0px #000000;
    transition: transform 0.1s ease;
}

.social-link:hover {
    transform: translate(2px, 2px);
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2),
        2px 2px 0px #000000;
}

/* Home Footer */
.home-footer {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.home-footer p {
    font-size: 0.6rem;
    color: #888888;
}

/* Home Page Responsive */
@media (max-width: 768px) {
    .home-logo {
        font-size: 3rem;
    }

    .home-tagline {
        font-size: 0.7rem;
    }

    .home-button {
        font-size: 0.8rem;
        padding: 1.2rem 2rem;
        min-width: 250px;
    }

    .wizard-float {
        width: 100px;
        height: 100px;
    }

    .home-credits {
        bottom: 1rem;
        right: 1rem;
        gap: 2rem;
    }

    .social-link {
        font-size: 0.6rem;
        padding: 0.6rem 1rem;
    }

    .social-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .home-logo {
        font-size: 2rem;
    }

    .home-tagline {
        font-size: 0.6rem;
    }

    .home-button {
        font-size: 0.7rem;
        padding: 1rem 1.5rem;
        min-width: 200px;
    }

    .wizard-float {
        width: 80px;
        height: 80px;
    }

    .home-nav {
        gap: 1.5rem;
    }

    .home-credits {
        bottom: 0.5rem;
        right: 0.5rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .social-link {
        font-size: 0.5rem;
        padding: 0.5rem 0.8rem;
    }

    .social-label {
        font-size: 0.5rem;
    }
}

/* Header Styles */
.header {
    position: relative;
    padding: 1rem 1rem 0.5rem;
    background: #000000;
}

.header-frame {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
    clip-path: polygon(0 30px,
            30px 0,
            calc(100% - 30px) 0,
            100% 30px,
            100% calc(100% - 30px),
            calc(100% - 30px) 100%,
            30px 100%,
            0 calc(100% - 30px));
    background: #1a0033;
    border: 2px solid #6b21a8;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 3.5rem;
    color: #a855f7;
    text-shadow:
        4px 4px 0px #6b21a8,
        8px 8px 0px #4c1d95;
    letter-spacing: 0.05em;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #8b9e4d;
    color: #000000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-decoration: none;
    border: 4px solid #000000;
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2),
        4px 4px 0px #000000;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.nav-button:hover {
    transform: translate(2px, 2px);
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.3),
        inset 4px 4px 0px rgba(255, 255, 255, 0.2),
        2px 2px 0px #000000;
}

.nav-button:active {
    transform: translate(4px, 4px);
    box-shadow:
        inset -4px -4px 0px rgba(0, 0, 0, 0.5),
        inset 4px 4px 0px rgba(255, 255, 255, 0.1);
}

.triangle-icon {
    width: 16px;
    height: 16px;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 1rem 3rem;
    background: #000000;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-frame {
    position: relative;
    padding: 2rem 1.5rem;
    border: 2px solid #333333;
    background: #0a0014;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    background: #000000;
    border: 3px solid #6b21a8;
    padding: 1rem;
    transition: transform 0.2s ease;
    cursor: pointer;
    clip-path: polygon(0 15px,
            15px 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            15px 100%,
            0 calc(100% - 15px));
}

/* Corner decorations - Static, no glow */
.gallery-item::before,
.gallery-item::after {
    content: '✦';
    position: absolute;
    font-size: 0.9rem;
    color: #6b21a8;
}

.gallery-item::before {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.gallery-item::after {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Side stars - Static */
.gallery-item {
    background-image:
        radial-gradient(circle at 10px 50%, #6b21a8 2px, transparent 2px),
        radial-gradient(circle at calc(100% - 10px) 50%, #6b21a8 2px, transparent 2px);
    background-size: 20px 100%, 20px 100%;
    background-position: left center, right center;
    background-repeat: no-repeat;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: #a855f7;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    color: #a855f7;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: contrast(1.1);
}

/* Apply Section */
.apply-section {
    padding: 4rem 1rem;
    background: #0a0014;
    min-height: 100vh;
}

.apply-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: #a855f7;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow:
        3px 3px 0px #6b21a8,
        6px 6px 0px #4c1d95;
}

.social-buttons {
    margin-bottom: 3rem;
    text-align: center;
}

.follow-text {
    font-size: 1rem;
    color: #a855f7;
    margin-bottom: 2rem;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pixel-button {
    display: inline-block;
    padding: 1.2rem 2rem;
    background: #10b981;
    color: #000000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-decoration: none;
    border: 5px solid #000000;
    box-shadow:
        inset -5px -5px 0px rgba(0, 0, 0, 0.4),
        inset 5px 5px 0px rgba(255, 255, 255, 0.3),
        6px 6px 0px #000000;
    cursor: pointer;
    transition: transform 0.1s ease;
    text-align: center;
}

.pixel-button:hover {
    transform: translate(3px, 3px);
    box-shadow:
        inset -5px -5px 0px rgba(0, 0, 0, 0.4),
        inset 5px 5px 0px rgba(255, 255, 255, 0.3),
        3px 3px 0px #000000;
}

.pixel-button:active {
    transform: translate(6px, 6px);
    box-shadow:
        inset -5px -5px 0px rgba(0, 0, 0, 0.6),
        inset 5px 5px 0px rgba(255, 255, 255, 0.1);
}

.social-btn {
    min-width: 200px;
}

/* Form Styles */
.form-container-wrapper {
    position: relative;
}

.wl-form {
    background: #0a0014;
    border: 4px solid #6b21a8;
    padding: 3rem;
    clip-path: polygon(0 15px,
            15px 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            15px 100%,
            0 calc(100% - 15px));
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    clip-path: polygon(0 15px,
            15px 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            15px 100%,
            0 calc(100% - 15px));
}

.coming-soon-text {
    font-size: 2.5rem;
    color: #a855f7;
    text-shadow:
        4px 4px 0px #6b21a8,
        8px 8px 0px #4c1d95,
        0 0 40px rgba(168, 85, 247, 0.8);
    letter-spacing: 0.1em;
    animation: glow 2s ease-in-out infinite;
    padding: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    color: #a855f7;
    margin-bottom: 1rem;
}

.pixel-input {
    width: 100%;
    padding: 1rem;
    background: #1a0033;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    border: 4px solid #6b21a8;
    outline: none;
    transition: border-color 0.2s ease;
}

.pixel-input:focus {
    border-color: #a855f7;
}

.pixel-input::placeholder {
    color: #666666;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    margin-top: 2rem;
    padding: 1rem;
    font-size: 0.7rem;
    text-align: center;
    border: 3px solid transparent;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Checker Section */
.checker-section {
    padding: 4rem 1rem;
    background: #000000;
    min-height: 100vh;
}

.checker-container {
    max-width: 800px;
    margin: 0 auto;
}

.checker-form {
    background: #0a0014;
    border: 4px solid #6b21a8;
    padding: 3rem;
    clip-path: polygon(0 15px,
            15px 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            15px 100%,
            0 calc(100% - 15px));
}

.check-btn {
    width: 100%;
    margin-top: 1rem;
}

.check-result {
    margin-top: 2rem;
    padding: 2rem;
    font-size: 0.8rem;
    text-align: center;
    border: 3px solid transparent;
    display: none;
}

.check-result.found {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.check-result.not-found {
    display: block;
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
    color: #a855f7;
}

.check-result.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    background: #1a0033;
    border-top: 4px solid #6b21a8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 0.6rem;
    color: #888888;
    margin-bottom: 1rem;
}

.footer-stars {
    font-size: 1rem;
    color: #a855f7;
    letter-spacing: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-button {
        padding: 0.8rem 1rem;
        font-size: 0.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-frame {
        padding: 1.5rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .wl-form,
    .checker-form {
        padding: 2rem 1.5rem;
    }

    .coming-soon-text {
        font-size: 1.5rem;
    }

    .pixel-button {
        font-size: 0.7rem;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-button {
        font-size: 0.5rem;
        padding: 0.6rem 0.8rem;
    }

    .header-frame {
        padding: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery-item {
        padding: 0.7rem;
    }

    .gallery-frame {
        padding: 1rem 0.7rem;
    }

    .coming-soon-text {
        font-size: 1rem;
        padding: 1rem;
    }
}