/* Events page - shipkaro */

:root {
    --purple: #A78BFA;
    --purple-dark: #8B5CF6;
    --black: #1a1a1a;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation - same as main site */
.nav {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-icon {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--purple);
}

.nav-link-active {
    color: var(--black);
}

.nav-link-cta {
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link-cta:hover {
    background: var(--purple-dark);
    color: var(--white);
}

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

.main h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    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: #e5e7eb;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Notify Section */
.notify-section {
    text-align: center;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 12px;
    margin-bottom: 3rem;
}

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

.notify-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notify-btn:hover {
    background: var(--purple-dark);
    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 rgba(0, 0, 0, 0.06);
}

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

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

.event-text {
    flex: 1;
}

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

.event-text p {
    font-size: 1rem;
    color: var(--gray);
    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-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.02em;
}

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

.event-register:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* Event Tags */
.event-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.tag-today {
    background: #dcfce7;
    color: #166534;
}

.tag-live {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse 2s infinite;
}

.tag-soon {
    background: #ede9fe;
    color: #7c3aed;
}

.tag-past {
    background: #fee2e2;
    color: #dc2626;
}

.tag-coming-soon {
    background: #ede9fe;
    color: #7c3aed;
}

.tag-anti-gravity {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

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

/* Registration Closed (for past events) */
.event-register.registration-closed {
    color: #9ca3af;
}

.event-register.registration-closed:hover {
    color: #6b7280;
}

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

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

.event-image {
    width: 160px;
    height: auto;
    border-radius: 8px;
    display: block;
}

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

.coming-soon-event:last-of-type {
    border-bottom: none;
}

.coming-soon-event:hover {
    background: var(--gray-light);
}

.coming-soon-event:hover h2 {
    color: var(--purple);
}

/* Reduce gap before notify section */
.coming-soon-event + .notify-section {
    margin-top: 0.5rem;
}

/* Newsletter Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    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(--white);
    border-radius: 16px;
    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(--gray);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--black);
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.75rem;
}

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

.modal-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--gray-light);
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter {
    margin-bottom: 1.5rem;
}

.newsletter-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.newsletter-link:hover {
    background: var(--purple-dark);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--gray);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--purple);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .main {
        padding: 3rem 1.5rem;
    }

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

    .event-item {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .event-image {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .nav-link-cta {
        padding: 0.4rem 0.75rem;
    }

    .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;
    }
}
