/* Base styles */
html, body {
    font-family: 'Courier New', monospace;
    color: #ff3d00;
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        linear-gradient(to right, rgba(255, 61, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 61, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    cursor: none; /* Hide default cursor for custom cursor effect */
}

/* Custom cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid #ff3d00;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: #ff3d00;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Interactive elements hover effect */
a:hover ~ .cursor,
button:hover ~ .cursor {
    transform: scale(1.5);
}

.panel {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    border: 1px solid #ff3d00;
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.2),
                inset 0 0 20px rgba(255, 61, 0, 0.1),
                0 0 50px rgba(255, 61, 0, 0.1);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    animation: panelFloat 8s ease-in-out infinite, panelGlow 3s ease-in-out infinite;
}

@keyframes panelFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ff3d00;
    box-shadow: 0 0 10px rgba(255, 61, 0, 0.3);
    pointer-events: none;
}

.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 65%, rgba(255, 61, 0, 0.1) 75%, transparent 85%);
    background-size: 200% 200%;
    animation: panelGlow 2s linear infinite;
    pointer-events: none;
}

@keyframes panelGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 61, 0, 0.2),
                inset 0 0 20px rgba(255, 61, 0, 0.1),
                0 0 50px rgba(255, 61, 0, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 61, 0, 0.3),
                inset 0 0 30px rgba(255, 61, 0, 0.2),
                0 0 70px rgba(255, 61, 0, 0.2); }
}

/* Glitch Text */
.glitch-text {
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
    font-family: monospace;
    text-shadow: 0 0 5px rgba(255, 61, 0, 0.7);
    letter-spacing: 2px;
}

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

.glitch::before {
    content: attr(data-char);
    position: absolute;
    left: 0;
    animation: glitchChar 3s infinite steps(1);
    animation-delay: calc(var(--delay) * -1s);
}

@keyframes glitchChar {
    0%, 12%, 24%, 36%, 48%, 60%, 72%, 84%, 96% { content: attr(data-char); }
    6% { content: "0"; }
    18% { content: "1"; }
    30% { content: "$"; }
    42% { content: "€"; }
    54% { content: "¥"; }
    66% { content: "0"; }
    78% { content: "$"; }
    90% { content: "1"; }
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem 2rem 0 2rem;
    position: relative;
}

.main-logo {
    width: 100%;
    height: auto;
    max-height: 300px;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.main-logo:hover {
    transform: scale(1.02);
}



/* ASCII Art */
.ascii-art {
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 2rem;
    color: #ff3d00;
    text-shadow: 0 0 5px rgba(255, 61, 0, 0.7);
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form styles */
.form-container {
    margin: 2rem 0 0.5rem 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.form-container .form-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

/* Ticket Registration */
.ticket-container {
    margin: 0.5rem 0 2rem 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Override Luma styles with more specific selectors */
.ticket-container .luma-checkout--button,
a.luma-checkout--button {
    background: transparent !important;
    border: 1px solid #ff3d00 !important;
    color: #ff3d00 !important;
    padding: 0.8rem 1.5rem !important;
    cursor: pointer !important;
    font-family: 'Courier New', monospace !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ticket-container .luma-checkout--button:hover,
a.luma-checkout--button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.2) !important;
    background: transparent !important;
}

input[type="email"] {
    background: transparent;
    border: 1px solid #ff3d00;
    color: #ff3d00;
    padding: 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

input[type="email"]::placeholder {
    color: rgba(255, 61, 0, 0.5);
}

input[type="email"]:focus {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 61, 0, 0.2);
}

button {
    background: transparent;
    border: 1px solid #ff3d00;
    color: #ff3d00;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

button:hover, button:focus {
    background: rgba(255, 61, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.3);
    outline: none;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 61, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::after {
    width: 300px;
    height: 300px;
}

/* Updates section */
.updates {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px dashed #ff3d00;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.updates pre {
    margin: 0;
    color: #ff3d00;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    text-align: center;
    border: 1px dashed #ff3d00;
    padding: 1rem;
}

.social-links pre {
    display: inline-block;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.social-links a {
    color: #ff3d00;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.social-links a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
    transform: translateX(5px);
}

.social-links a:hover {
    transform: translateX(10px);
    text-shadow: 0 0 8px #ff3d00;
}

/* PGP Footer */
.pgp-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.pgp-footer .copy-key {
    color: #ff3d00;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgp-footer .copy-key:hover {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 61, 0, 0.5);
}

/* Sponsors */
.sponsor-section {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    border: 1px dashed #ff3d00;
    text-align: center;
    background: rgba(255, 61, 0, 0.05);
}

.sponsor-heading {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sponsor-tier {
    margin: 0 0 1.5rem 0;
    color: rgba(255, 61, 0, 0.75);
    font-weight: 600;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sponsor-card img {
    width: 150px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0.9);
}

.sponsor-card span {
    font-size: 0.9rem;
    line-height: 1.3;
}

.sponsor-card:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* CRT Effect */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 61, 0, 0.06), rgba(255, 61, 0, 0.02), rgba(255, 61, 0, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.15;
}

/* Fire Effect (previously Rain) */
.rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rain span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff3d00;
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 
        0 0 10px #ff3d00,
        0 0 20px #ff3d00,
        0 0 30px rgba(255, 61, 0, 0.5);
    animation: ember linear infinite;
}

@keyframes ember {
    0% {
        transform: translateY(-10px) translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(calc(50vh)) translateX(50px) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 10px)) translateX(-50px) scale(0.1);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .panel {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .logo-container {
        margin: -1.5rem -1.5rem 2rem -1.5rem;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .main-logo {
        max-height: 220px;
        width: 100%;
    }

    .ascii-art {
        font-size: 0.5rem;
    }
    
    input[type="email"] {
        font-size: 1rem;
        padding: 1rem;
        max-width: 90%;
    }

    button {
        width: 90%;
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .updates pre, .social-links pre {
        font-size: 0.8rem;
    }

    .glitch-text {
        font-size: 1.5rem;
    }

    .pgp-footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .panel {
        width: 100%;
        padding: 1rem;
        margin: 0;
        border-left: none;
        border-right: none;
    }
    
    .logo-container {
        margin: -1rem -1rem 2rem -1rem;
        padding: 1rem 1rem 0 1rem;
    }

    .main-logo {
        max-height: 170px;
        width: 100%;
    }

    .ascii-art {
        font-size: 0.4rem;
    }

    .updates, .social-links {
        margin: 1rem -1rem;
        border-left: none;
        border-right: none;
    }

    .form-container {
        padding: 0 1rem;
    }

    .form-container .form-row {
        flex-direction: column;
    }

    .ticket-container {
        padding: 0 1rem;
    }

    .ticket-container .luma-checkout--button,
    a.luma-checkout--button {
        width: 100% !important;
        margin-top: 0.5rem !important;
        padding: 1rem !important;
    }

    .pgp-footer {
        font-size: 0.65rem;
        padding: 0 1rem;
        word-break: break-all;
    }
}

/* Form states */
.form-container form.submitted input,
.form-container form.submitted button {
    opacity: 0.5;
    pointer-events: none;
}

.form-container form.loading button {
    position: relative;
    pointer-events: none;
}

.form-container form.loading button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 2px solid transparent;
    border-top-color: #ff3d00;
    border-radius: 50%;
    animation: loading-spinner 1s linear infinite;
}

@keyframes loading-spinner {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.form-status {
    margin-top: 15px;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    border: 1px solid;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.visible {
    opacity: 1;
}

.form-status.success {
    color: #00ff00;
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

.form-status.error {
    color: #ff0000;
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

input[type="email"].invalid {
    border-color: #ff0000;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* PGP Key section */
.pgp-key {
    text-align: center;
    border: 1px dashed #ff3d00;
    padding: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.pgp-key pre {
    display: inline-block;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.pgp-key .copy-key {
    color: #ff3d00;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgp-key .copy-key:hover {
    color: #ff6b3d;
    text-shadow: 0 0 8px rgba(255, 61, 0, 0.5);
}
