/* ============================================
   NOVAI - Northern Virginia AI Happy Hour
   Single Viewport Design with Virginia Map
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(26, 26, 36, 0.8);
    --text-primary: #f0f0f5;
    --text-secondary: #9090a0;
    --text-muted: #606070;
    --accent-cyan: #00d4ff;
    --accent-magenta: #ff00aa;
    --accent-violet: #8855ff;
    --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet), var(--accent-magenta));
    --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============================================
   Virginia Background
   ============================================ */
.virginia-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    pointer-events: none;
}

.virginia-svg {
    width: 100%;
    height: 100%;
    max-width: none;
}

.virginia-outline {
    fill: none;
    stroke: rgba(136, 85, 255, 0.25);
    stroke-width: 1;
    opacity: 0;
    display: none;
}

.nova-region {
    fill: rgba(0, 212, 255, 0.2);
    stroke: var(--accent-cyan);
    stroke-width: 2;
    filter: url(#glow);
}

.nova-glow {
    fill: rgba(0, 212, 255, 0.08);
    filter: blur(10px);
    animation: novaGlow 3s ease-in-out infinite;
}

.nova-pulse {
    fill: var(--accent-cyan);
}

.nova-pulse-ring {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 2;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes novaGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes pulseRing {
    0% {
        r: 5;
        opacity: 1;
    }

    100% {
        r: 25;
        opacity: 0;
    }
}

/* ============================================
   Main Container - Viewport Height
   ============================================ */
.main-container {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    flex: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 12vw, 5rem);
    font-weight: 700;
    line-height: 1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ============================================
   Event Section
   ============================================ */
.event-section {
    animation: fadeInUp 0.6s ease-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    max-width: 50%;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(136, 85, 255, 0.15));
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    min-width: 90px;
}

.event-month {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
}

.event-day {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.venue-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 18px;
}

.venue-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.venue-address {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.venue-link:hover .venue-name {
    text-decoration: underline;
}

.calendar-buttons {
    display: flex;
    gap: 10px;
}

.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cal-btn svg {
    width: 16px;
    height: 16px;
}

.cal-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.map-embed {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 320px;
}

.map-embed iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.05);
}

/* ============================================
   Signup Section
   ============================================ */
.signup-section {
    animation: fadeInUp 0.6s ease-out 0.4s both;
    margin-top: 32px;
    margin-bottom: 32px;
}

.signup-prompt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 12px;
}

.signup-form {
    display: flex;
    gap: 10px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.signup-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.signup-form input[type="email"]:focus {
    border-color: var(--accent-cyan);
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.form-success {
    display: none;
    padding: 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    color: var(--accent-cyan);
    text-align: center;
}

.form-success.show {
    display: block;
}

.signup-form.hidden {
    display: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.presented-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.presented-by span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.spartera-logo {
    height: 32px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.spartera-logo:hover {
    opacity: 1;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive - Tighten for Mobile
   ============================================ */
@media (max-width: 900px) {
    .event-layout {
        max-width: 70%;
    }
}

@media (max-width: 500px) {
    .main-container {
        padding: 20px 16px;
    }

    .hero {
        flex: 1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .event-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .event-card {
        padding: 24px;
        gap: 18px;
    }

    .event-date {
        padding: 16px 18px;
        min-width: 75px;
    }

    .event-day {
        font-size: 2rem;
    }

    .event-info h3 {
        font-size: 1.1rem;
    }

    .event-info p {
        font-size: 0.95rem;
    }

    .venue-name {
        font-size: 0.95rem;
    }

    .venue-address {
        font-size: 0.85rem;
    }

    .calendar-buttons {
        flex-wrap: wrap;
    }

    .cal-btn {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    .map-embed {
        min-height: 220px;
    }

    .map-embed iframe {
        height: 220px;
    }

    .signup-section {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form input[type="email"],
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-height: 600px) {
    .main-container {
        padding: 12px 16px;
    }

    .hero {
        gap: 6px;
        flex: 0.5;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .event-layout {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 80%;
    }

    .event-card {
        padding: 20px;
    }

    .event-date {
        padding: 12px 14px;
        min-width: 65px;
    }

    .event-day {
        font-size: 1.8rem;
    }

    .map-embed {
        min-height: 150px;
    }

    .signup-section {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .signup-prompt {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .spartera-logo {
        height: 26px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        flex: 0.4;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        display: none;
    }

    .event-layout {
        grid-template-columns: 1fr 1fr;
        max-width: 80%;
    }

    .map-embed {
        min-height: 120px;
    }

    .signup-section {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .signup-prompt {
        display: none;
    }

    .virginia-bg {
        opacity: 0.3;
    }
}