/* Events page - shipkaro (V1 Editorial design) */

:root {
    --ink: #0E0B14;
    --ink-2: #2A2533;
    --mute: #6B6677;
    --rule: #E8E5EE;
    --paper: #FFFFFF;
    --soft: #FAF8F4;
    --purple: #9B6DFF;
    --purple-deep: #6B4DB8;
    --purple-light: #EDE6FF;
    --purple-soft: #F5F0FF;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: normal; font-synthesis: none; }
a { color: inherit; text-decoration: none; }

/* ============ NAV (matches main site) ============ */
.v1-wrap { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

.v1-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
}
.v1-nav-inner {
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.v1-logo { display: flex; align-items: center; gap: 8px; }
.v1-logo img { height: 32px; width: auto; display: block; }
.v1-nav-links { display: flex; gap: 32px; align-items: center; }
.v1-nav-links a {
    font-size: 14px; color: var(--ink-2); font-weight: 450;
    transition: color .15s; position: relative;
}
.v1-nav-links a:hover { color: var(--purple-deep); }
.v1-nav-links a.active { color: var(--purple-deep); font-weight: 500; }
.v1-nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--purple); border-radius: 1px;
}
.v1-nav-links a.v1-nav-cta {
    font-size: 14px; padding: 9px 18px;
    background: var(--ink); color: #fff;
    border: none; border-radius: 999px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .15s;
}
.v1-nav-links a.v1-nav-cta:hover { background: var(--purple-deep); color: #fff; }

/* Active-registration indicator on nav links */
.v1-nav-dot {
    display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--purple);
    margin-left: 4px;
    box-shadow: 0 0 0 3px rgba(155,109,255,0.22);
    animation: v1-nav-pulse 2s ease-in-out infinite;
    vertical-align: middle;
    position: relative; top: -1px;
}
@keyframes v1-nav-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(155,109,255,0.22); }
    50% { box-shadow: 0 0 0 6px rgba(155,109,255,0.05); }
}

/* Nav popover (active-event preview on hover) */
.v1-nav-popover-host { position: relative; display: inline-flex; align-items: center; }
.v1-nav-popover {
    position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 300px; max-width: calc(100vw - 32px);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 20px 50px -20px rgba(14,11,20,0.25);
    padding: 14px;
    opacity: 0; visibility: hidden;
    pointer-events: none; /* always — pure visual tooltip */
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 60;
    text-align: left;
}
.v1-nav-popover::before {
    content: ''; position: absolute;
    top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
}
.v1-nav-popover-host::after {
    content: ''; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    width: 300px; max-width: calc(100vw - 32px); height: 18px;
    display: none;
}
.v1-nav-popover-host:hover::after,
.v1-nav-popover-host:focus-within::after { display: block; }
.v1-nav-popover-host:hover .v1-nav-popover,
.v1-nav-popover-host:focus-within .v1-nav-popover {
    opacity: 1; visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.v1-nav-popover-label {
    display: flex; align-items: center; gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--purple-deep); margin-bottom: 10px;
}
.v1-nav-popover-blip {
    width: 6px; height: 6px; border-radius: 50%; background: var(--purple);
    box-shadow: 0 0 0 3px rgba(155,109,255,0.2);
    animation: v1-nav-pulse 2s ease-in-out infinite;
    flex: 0 0 auto;
}
.v1-nav-popover-event { display: block; color: inherit; text-decoration: none; }
.v1-nav-popover-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px; font-weight: 600; line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--ink); margin-bottom: 4px;
}
.v1-nav-popover-meta {
    font-size: 12px; color: var(--mute); margin-bottom: 12px; line-height: 1.4;
}
.v1-nav-popover-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--purple-deep);
}
.v1-nav-popover-cta .arrow { transition: transform .15s ease; }
.v1-nav-popover-event:hover .v1-nav-popover-cta { color: var(--purple); }
.v1-nav-popover-event:hover .v1-nav-popover-cta .arrow { transform: translateX(2px); }

@media (max-width: 768px) {
    .v1-nav-popover { display: none; }
}

/* ============ SECTION LABEL ============ */
.v1-sec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; letter-spacing: 0.05em;
    color: var(--purple-deep); text-transform: uppercase;
    margin-bottom: 14px;
}

/* ============ MAIN CONTENT ============ */
.main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.main h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--mute);
    margin-bottom: 2.5rem;
}

/* Section Headers */
.divider-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.divider {
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Notify Section */
.notify-section {
    text-align: center;
    padding: 2rem;
    background: var(--soft);
    border: 1px solid var(--rule);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.notify-section p {
    font-size: 1rem;
    color: var(--mute);
    margin-bottom: 1rem;
}

.notify-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--purple);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px -4px rgba(155,109,255,0.4);
}

.notify-btn:hover {
    background: var(--purple-deep);
    transform: translateY(-1px);
}

/* Event Item */
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rule);
}

/* Open-for-registration / live events — purple-tinted card */
.event-item--active {
    background: linear-gradient(180deg, var(--purple-light) 0%, var(--purple-soft) 55%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(155,109,255,0.25);
    border-radius: 16px;
    padding: 1.75rem;
    margin: 0.5rem 0 1.25rem;
    box-shadow: 0 14px 36px -22px rgba(107,77,184,0.28);
}

.event-title-link {
    text-decoration: none;
    color: inherit;
}

.event-title-link:hover h2 {
    color: var(--purple-deep);
}

.event-text {
    flex: 1;
}

.event-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.event-text p {
    font-size: 0.95rem;
    color: var(--mute);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.event-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mute);
    letter-spacing: 0.02em;
}

.event-register {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--purple);
    text-decoration: none;
    transition: color .15s;
}

.event-register:hover {
    color: var(--purple-deep);
}

/* Event Tags */
.event-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.tag-today { background: #E6F7EE; color: #1F7A4D; border: 1px solid #C5E8D3; }
.tag-live { background: #fee2e2; color: #dc2626; animation: pulse 2s infinite; }
.tag-soon { background: var(--purple-soft); color: var(--purple-deep); border: 1px solid var(--purple-light); }
.tag-past { background: #fee2e2; color: #dc2626; }
.tag-coming-soon { background: var(--purple-soft); color: var(--purple-deep); border: 1px solid var(--purple-light); }
.tag-anti-gravity { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }

.event-category {
    font-size: 0.8rem;
    color: var(--mute);
}

.event-register.registration-closed { color: var(--mute); }
.event-register.registration-closed:hover { color: var(--ink-2); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.event-item > a { flex-shrink: 0; }

.event-image {
    width: 160px;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--rule);
}

/* Coming Soon Events - Clickable */
.coming-soon-event {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
}

.coming-soon-event:last-of-type { border-bottom: none; }
.coming-soon-event:hover { background: var(--purple-soft); }
.coming-soon-event:hover h2 { color: var(--purple-deep); }
.coming-soon-event + .notify-section { margin-top: 0.5rem; }

/* Newsletter Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(14,11,20,0.5);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px; width: 100%;
    text-align: center; position: relative;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--mute);
    cursor: pointer; padding: 0.25rem; border-radius: 4px;
    transition: color 0.2s ease;
}
.modal-close:hover { color: var(--ink); }

.modal-content h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem; font-weight: 400;
    color: var(--ink); margin-bottom: 0.75rem;
}

.modal-content p {
    font-size: 0.95rem; color: var(--mute);
    line-height: 1.6; margin-bottom: 1.5rem;
}

.modal-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--purple); color: #fff;
    text-decoration: none; font-weight: 500;
    font-size: 1rem; border-radius: 999px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px -4px rgba(155,109,255,0.4);
}
.modal-btn:hover { background: var(--purple-deep); transform: translateY(-1px); }

/* ============ FOOTER (matches main site) ============ */
.v1-foot {
    background: #0E0B14; color: rgba(255,255,255,0.5);
    padding: 56px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}
.v1-foot-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 56px;
}
.v1-foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.v1-foot-brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.v1-foot-tagline { font-size: 13px; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.55; }
.v1-foot-col-h { font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-weight: 500; }
.v1-foot-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; transition: color .15s; }
.v1-foot-col a:hover { color: var(--purple); }
.v1-foot-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
}
.v1-foot-bottom a { color: rgba(255,255,255,0.5); transition: color .15s; }
.v1-foot-bottom a:hover { color: var(--purple); }
.v1-foot-socials { display: flex; gap: 10px; }
.v1-foot-socials a {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; color: rgba(255,255,255,0.5);
    transition: all .15s;
}
.v1-foot-socials a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.v1-foot-socials a svg { width: 14px; height: 14px; fill: currentColor; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .v1-wrap { padding: 0 24px; }
    .v1-nav-inner { height: 60px; }
    .v1-nav-links { gap: 16px; }
    .v1-nav-links a { font-size: 13px; }

    .main { padding: 3rem 1.5rem; }
    .main h1 { font-size: 2.25rem; }

    .event-item { flex-direction: column-reverse; gap: 1rem; }
    .event-image { width: 140px; }

    .v1-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .v1-wrap { padding: 0 16px; }
    .v1-nav-links { gap: 10px; }
    .v1-nav-links a { font-size: 12px; }
    .v1-nav-links a.v1-nav-cta { font-size: 12px; padding: 7px 14px; }

    .main { padding: 2rem 1rem; }
    .main h1 { font-size: 1.75rem; }
    .subtitle { font-size: 1rem; }
    .event-text h2 { font-size: 1.125rem; }
    .event-image { width: 120px; }

    .v1-foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .v1-foot-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
