/* AFTER DWN - Artist Application Page */

/* Base Styles */
html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-x: hidden;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.apply-page {
    background-color: var(--base-dark);
    color: var(--faded-white);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.apply-page::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.apply-container {
    padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2rem;
    position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: fadeInOut 2s infinite alternate;
    cursor: pointer;
}

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: rgba(255, 0, 0, 0.7);
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 1.5s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-text {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 0.9;
    margin-bottom: 1rem;
    transform: translateX(-5px);
    position: relative;
    z-index: 2;
}

.hero-subcaption {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--fog-grey);
    max-width: 80%;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.exit-arrow-ghost {
    position: absolute;
    font-size: 15rem;
    color: var(--signal-red);
    opacity: 0.05;
    bottom: -2rem;
    right: -2rem;
    transform: rotate(-10deg);
    z-index: 1;
    pointer-events: none;
}

/* Intro Section */
.intro-section {
    margin: 4rem auto;
    max-width: 700px;
}

.intro-section blockquote {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
    padding: 0 1rem;
    border-left: 2px solid rgba(255, 0, 0, 0.5);
    position: relative;
}

/* Access Button */
.access-button-container {
    margin-top: 3rem;
    text-align: center;
}

.access-button {
    background-color: transparent;
    border: 1px solid rgba(255, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.access-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.access-button:hover {
    color: #ffffff;
    border-color: rgba(255, 0, 0, 0.9);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.access-button:hover:before {
    transform: translateX(0);
}

.access-button .btn-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.access-button:hover .btn-icon {
    transform: translateX(3px);
}

.intro-text {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--fog-grey);
    max-width: 90%;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    z-index: 2;
}

.timestamp-divider {
    margin: 3rem 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--fog-grey);
    opacity: 0.6;
    letter-spacing: 1px;
    position: relative;
}

.timestamp-divider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--fog-grey);
    opacity: 0.2;
    bottom: -10px;
    left: 0;
}

/* Looking For Section */
.looking-for-section {
    padding: 2rem 1rem 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--fog-grey);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.looking-for-text {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--faded-white);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

/* Form Section */
.form-section {
    padding: 2rem 1rem 4rem;
}

.artist-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}

/* Terminal-inspired styling */

/* Code Gate Section */
.code-gate-section {
    margin: 4rem auto;
    max-width: 700px;
}

.terminal-container {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--signal-red);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(232, 42, 42, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    font-family: 'Space Mono', monospace;
    margin-bottom: 2rem;
}

.terminal-header {
    background-color: rgba(232, 42, 42, 0.1);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(232, 42, 42, 0.3);
}

.terminal-title {
    color: var(--signal-red);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.terminal-body {
    padding: 20px;
    color: #d4d4d4;
    font-size: 0.9rem;
    line-height: 1.6;
}

.terminal-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-line {
    opacity: 0;
    animation: terminalFadeIn 0.1s ease-in-out forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.3s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.3s; }
.terminal-line:nth-child(4) { animation-delay: 1.8s; }
.terminal-line:nth-child(5) { animation-delay: 2.3s; }

.command-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt {
    color: var(--signal-red);
    font-weight: bold;
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 8px;
}

.code-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    padding: 0;
    width: 150px;
    caret-color: transparent;
}

.code-input:focus {
    outline: none;
}

.cursor {
    color: var(--signal-red);
    animation: blink 1s infinite;
    margin-left: 2px;
}

.error-message {
    color: var(--signal-red);
    opacity: 0;
    display: none;
}

.boot-line {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group.visible {
    opacity: 1;
    transform: translateY(0);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.field-marker {
    color: var(--signal-red);
    margin-right: 5px;
}

input, textarea, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-bottom-color: var(--signal-red);
    box-shadow: 0 1px 0 0 var(--signal-red);
    background: rgba(232, 42, 42, 0.05);
}

.submit-btn {
    background: transparent;
    border: 1px solid var(--signal-red);
    color: var(--signal-red);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.submit-btn:hover {
    background-color: rgba(232, 42, 42, 0.1);
    transform: translateY(-2px);
}

.submit-text {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--fog-grey);
    opacity: 0.7;
}

.form-success {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--faded-white);
    padding: 2rem 0;
}

/* Footer Adjustments */
.footer-contact {
    margin-bottom: 1rem;
}

.email {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--fog-grey);
    opacity: 0.7;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 2rem;
    }
    
    .intro-text,
    .looking-for-text {
        max-width: 100%;
    }
    
    .artist-form {
        width: 100%;
    }
}

/* Layout Overrides for Apply Page */
body.apply-page {
    display: block; /* undo global flex centering */
    overflow-y: auto; /* allow scrolling */
    min-height: 100%;
}

.apply-container {
    opacity: 1; /* ensure visible even if animations missing */
}

/* Animation Classes */
.fade-in {
    opacity: 1 !important;
    animation: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Section */
.form-section {
    margin: 4rem auto;
    max-width: 700px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.form-section.visible {
    opacity: 1;
    height: auto;
    overflow: visible;
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.hidden {
    display: none;
}

/* Ghost Input Animation */
.form-field input:focus::placeholder {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Red Glow Effect */
.submit-btn:focus {
    box-shadow: 0 0 15px rgba(232, 42, 42, 0.3);
    outline: none;
}
