/* Events Page Styling */

:root {
    --font-mono: 'Space Mono', monospace;
}

main {
    background-color: #0A192F;
    min-height: 100vh;
}

/* Hero */
.page-hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0.05) 0%, transparent 100%);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding-top: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.stat { display: flex; flex-direction: column; }
.stat .num { font-family: var(--font-heading); font-size: 2.5rem; color: #fff; }
.stat .label { font-family: var(--font-mono); font-size: 0.8rem; color: #8892B0; text-transform: uppercase; }

/* Events List */
.events-list-section {
    padding: 1.5rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .section-title h2 { white-space: normal; font-size: 2rem; }
}

.glitch-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

/* Event Row (Ticket Style) */
.event-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    align-items: center;
}

.event-row:hover {
    background: rgba(100, 255, 218, 0.03);
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
    border-bottom-color: transparent;
}

/* Date Box */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #112240;
    border: 1px solid #233554;
    border-radius: 8px;
    height: 80px;
    width: 80px;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    line-height: 1;
}

.event-date .month {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-blue);
    text-transform: uppercase;
}

/* Details */
.event-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.event-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
}

.event-badge.workshop { }
.event-badge.social { background: rgba(255, 105, 180, 0.1); color: #FF69B4; }
.event-badge.industry { background: rgba(255, 215, 0, 0.1); color: #FFD700; }

.location {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.desc {
    font-size: 0.95rem;
    color: #8892B0;
    line-height: 1.5;
    max-width: 600px;
}

/* events.css - Action Button Update */
.rsvp-btn {
    font-family: var(--font-mono);
    color: var(--neon-blue); /* Updated teal: #64FFDA */
    text-decoration: none;
    border: 1px solid rgba(100, 255, 218, 0.3); /* Soft teal border */
    background: #112240; /* Navy background instead of grey */
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rsvp-btn:hover {
    background: var(--neon-blue);
    color: #0A192F;
}

.rsvp-btn:hover:not(:disabled) {
    background: var(--neon-blue); /* #64FFDA */
    color: #0A192F; /* Navy text */
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
}

.rsvp-btn:disabled {
    background: #112240;
    color: #445B7F; /* Dim navy-grey text */
    border-color: #233554;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Archive Divider */
.archive-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0 1rem;
}
.archive-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #1a2e47;
}
.archive-divider span {
    position: relative;
    background: #0A192F;
    padding: 0.2rem 0.75rem;
    border: 1px solid #1a2e47;
    color: #445B7F;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

/* Past Event State */
.past-event { opacity: 0.5; pointer-events: none; }
.past-event .event-date { border-color: #222; }
.past-event h3, .past-event .location { color: #445B7F; }
.ended {
    font-family: var(--font-mono);
    color: #444;
    border: 1px solid #233554;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    display: block;
    text-align: center;
}

/* Gallery Grid */
.gallery-section {
    padding: 4rem 2rem;
    background: #020C1B;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h2 { font-family: var(--font-heading); color: #fff; font-size: 2rem; }
.gallery-header p { color: #666; font-family: var(--font-mono); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-item:hover { transform: scale(1.02); z-index: 2; }

/* Grid spans for masonry effect */
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.tall { grid-row: span 2; }

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .caption { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
    .events-hero h1 { font-size: 3rem; }
    .hero-stats { gap: 2rem; flex-wrap: wrap; }
    
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .event-date { width: 80px; min-width: 80px; height: auto; flex-direction: column; gap: 0; padding: 0.5rem; }
    .event-date .day { font-size: 1.4rem; }

    .event-action { width: 100%; }
    .rsvp-btn { display: block; width: 100%; }
}

/* Ensure all rows have the same vertical alignment */
.event-row {
    display: flex;
    align-items: flex-start; /* Aligns Date, Details, and Button to the top */
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #222;
}

/* Give the details a consistent growing space */
.event-details {
    flex: 1; /* This forces it to take up all remaining space */
    min-width: 0; /* Prevents text from pushing the layout wide */
}

/* Prevent the button from jumping around */
.event-action {
    flex-shrink: 0; /* Keeps the button container a constant width */
    width: 180px;  /* Set a fixed width so all buttons line up vertically */
    display: flex;
    justify-content: flex-end;
}

/* Vertical stacking for mobile */
@media (max-width: 768px) {
    .events-hero h1 {
        font-size: 3rem; /* Scaled down for smaller screens */
    }

    .event-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
        padding: 2rem 1rem;
    }

    .event-date {
        width: 70px;
        margin-bottom: 0;
    }

    .event-action {
        width: 100%; /* Makes button full-width for easier tapping */
        justify-content: center;
    }

    .rsvp-btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}

.events-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Essential for mobile safety */
}