@import url("theme.css");
@import url("effects.css");
@import url("ornaments.css");
@import url("terminal.css");
@import url("hero.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1.1rem;
}

html, body {
    height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.green-text {
    color: var(--accent-green);
}

.red-text {
    color: var(--accent-red);
}

.highlight {
    color: var(--arcane-blue);
    font-weight: 600;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
}

/* Header */
#year-selector {
    display: flex;
    background-color: var(--bg-secondary);
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem;
    margin-bottom: 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0;
}

#year-selector li {
    list-style: none;
    font-size: 1.1rem;
}

#year-selector a:hover {
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

#year-selector a.active {
    background-color: var(--arcane-blue);
    color: var(--bg-color);
    border-radius: 5px;
    padding: 0 5px;
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pixel-art {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    width: 40px;
    height: 40px;
}

.pixel {
    background-color: var(--accent-green);
    width: 100%;
    height: 100%;
    border-radius: 1px;
    aspect-ratio: 1/1;
}

.pixel:nth-child(2),
.pixel:nth-child(5),
.pixel:nth-child(7),
.pixel:nth-child(9),
.pixel:nth-child(10),
.pixel:nth-child(12),
.pixel:nth-child(14),
.pixel:nth-child(17),
.pixel:nth-child(19),
.pixel:nth-child(20),
.pixel:nth-child(21),
.pixel:nth-child(22),
.pixel:nth-child(23),
.pixel:nth-child(24),
.pixel:nth-child(31),
.pixel:nth-child(34),
.pixel:nth-child(35),
.pixel:nth-child(36) {
    background-color: transparent;
    box-shadow: none;
}

.logo h1 {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    margin-bottom: 0;
}

/* CSS-only mobile menu */
.menu-toggle-input {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle-label span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: var(--arcane-blue);
}

nav a::after {
    content: '';
    box-shadow: var(--glow-line);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--arcane-blue);
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.cta-button {
    position: relative;
    background: transparent;
    color: var(--arcane-blue);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: visible;
    border: 2px solid var(--arcane-blue);
    border-radius: 5px;
}

/* Nothing to click yet: metal frame, no accent, no glow, no hover. */
.cta-button.is-tba {
    color: var(--text-secondary);
    border-color: rgba(var(--metal-rgb), 0.3);
    cursor: default;
}

.cta-button.is-tba:hover {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(var(--metal-rgb), 0.3);
    box-shadow: none;
    animation: none;
}

.cta-button:hover {
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(var(--arcane-blue-rgb), 0.05), rgba(var(--arcane-blue-rgb), 0.15) 50%, rgba(var(--arcane-blue-rgb), 0.05));
    border-color: var(--arcane-blue);
}

/* Replaces the inline styles the 2025 footer used. */
.footer-brand {
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 0.5em;
}

.footer-mascot {
    position: relative;
    display: inline-flex;
}

.footer-hat {
    position: absolute;
    width: 30px;
    height: auto;
    top: -22px;
    left: 7px;
    transform: rotate(8deg);
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Features / Why Join Section */
.features {
    padding: 5rem 0;
    background-color: rgba(var(--bg-rgb), 0.7);
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.feature-card {
    grid-column: span 2;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--arcane-blue), var(--accent-blue));
    box-shadow: var(--glow-line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:nth-last-child(-n + 2) {
    grid-column: span 3;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--arcane-blue);
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--metal-rgb), 0.38);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card:nth-last-child(-n + 2) {
        grid-column: 1;
    }
}

/* Sponsors Section */
.sponsors {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to top, rgba(var(--bg-rgb), 0), rgba(var(--bg-rgb), 0.8));
}

.sponsors h2 {
    margin-bottom: 1rem;
}

.sponsor-tier-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--metal);
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.sponsors-grid.main-sponsors {
    margin-bottom: 3rem;
}

.sponsor-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    position: relative;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    flex: 0 0 300px;
    max-width: 300px;
}

.sponsor-card.main-sponsor {
    flex: 0 0 350px;
    max-width: 350px;
    padding: 2.5rem;
    border: 1px solid rgba(var(--metal-rgb), 0.55);
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sponsor-card.main-sponsor:hover {
    transform: translateY(-5px);
    border-color: var(--metal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sponsor-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-sponsor .sponsor-logo {
    height: 120px;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-card h4 {
    margin-bottom: 0.5rem;
}

.sponsor-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.become-sponsor {
    margin-top: 3rem;
}

.become-sponsor h4 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Call to Action / Register Section */
.cta {
    padding: 2.5rem 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0), rgba(var(--bg-rgb), 0.8));
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-footer {
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h3 {
    font-family: 'VT323', monospace;
    font-size: 1.75rem;
    /* zero: it sits in the .footer-brand flex row, the row owns the spacing */
    margin-bottom: 0;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--arcane-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .sponsor-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: row-reverse;
        gap: 1rem;
    }

    .menu-toggle-label {
        display: flex;
        order: 1;
    }

    .cta-button {
        order: 2;
    }

    nav {
        order: 0;
    }
    
    .menu-toggle-input:checked ~ .nav-wrapper .menu-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle-input:checked ~ .nav-wrapper .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-input:checked ~ .nav-wrapper .menu-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        z-index: 100;
    }
    
    .menu-toggle-input:checked ~ .nav-wrapper nav {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .countdown-timer {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-value {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .sponsor-card {
        flex: 0 0 100%;
        max-width: 300px;
    }
    
    .countdown-timer {
        justify-content: space-between;
    }
    
    .countdown-item {
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.75rem;
    }
}
