/* Events Page Specific Styles */

/* Events Page Styles */

/* Events Hero Section */
.events-hero {
    padding-top: 152px;
    padding-bottom: 48px;
    position: relative;
    z-index: 1;
}

.events-hero-content {
    text-align: center;
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.events-hero-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 72px;
    color: var(--text-primary);
    margin: 0;
}

.events-hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: var(--text-primary);
    margin: 0;
}

/* Events Section */
.events-section {
    padding: 48px 0 120px;
    position: relative;
    z-index: 1;
}

.events-grid-all {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
    max-width: 1152px;
    margin: 0 auto;
}

.events-grid-all .event-card-all:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.events-grid-all .event-card-all:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.events-grid-all .event-card-all:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.events-grid-all .event-card-all:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

/* Event Card All */
.event-card-all {
    border: 1px solid var(--alfa-grey-1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: radial-gradient(70% 70% at 50% 50%, #2a364b 0%, #121e36 100%);
    user-select: none;
}

.event-card-all .selectable-text {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.event-card-all-link {
    cursor: pointer;
}

.event-card-all:focus,
.event-card-all:focus-visible,
.event-card-all-link:focus,
.event-card-all-link:focus-visible {
    outline: none;
}


.event-card-image {
    width: 100%;
    height: 302px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-image-hallow img {
    object-position: center;
}

.event-card-image-starlight img {
    object-position: center;
}

.event-card-image-christmas img {
    object-position: center;
}

.event-card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.event-card-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: transparent;
}

.event-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-badge {
    border: 1px solid var(--neon-500);
    border-radius: 8px;
    padding: 2px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--neon-500);
    display: inline-block;
}

.event-badge-warning {
    border-color: #ff6d05;
    color: #ff6d05;
    font-weight: 500;
}

.event-badge-drop-in {
    border-color: var(--badge-drop-in);
    color: var(--badge-drop-in);
}

.event-card-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.event-card-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: var(--text-primary);
    margin: 0;
}

.event-card-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
    margin: 0;
}

.event-card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-primary);
}

.event-card-detail i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-placeholder);
    font-size: 14px;
    flex-shrink: 0;
}

.event-card-detail .icon-calendar {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.event-card-detail .icon-location-pin {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.event-card-detail span {
    flex: 1;
}

.event-card-button {
    background-color: var(--bg-brand-dark);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    position: relative;
    box-shadow: inset 6px 8px 9px 0px #ff1597, inset -6px -8px 9px 0px #ff1597;
    align-self: flex-start;
}

/* Calendar page: clip radials to viewport so they don't extend the page */
.page-calendar .calendar-decorations {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.page-calendar .calendar-decorations .decoration {
    position: absolute;
}

/* Decoration positions for events page */
.decoration-blueball-events-1 {
    left: calc(50% - 100px);
    top: 60px;
    width: 1165px;
    height: 747px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.52) 0%, rgba(60, 150, 255, 0.28) 18%, rgba(60, 150, 255, 0.12) 42%, rgba(60, 150, 255, 0.06) 60%, rgba(60, 150, 255, 0.02) 82%, transparent 100%);
}

.decoration-blueball-events-2 {
    left: calc(50% - 1040px);
    top: 538px;
    width: 1121px;
    height: 739px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.52) 0%, rgba(60, 150, 255, 0.28) 18%, rgba(60, 150, 255, 0.12) 42%, rgba(60, 150, 255, 0.06) 60%, rgba(60, 150, 255, 0.02) 82%, transparent 100%);
}

.decoration-blueball-blur-events-1 {
    left: -900px;
    top: -900px;
    width: 2000px;
    height: 2000px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.28) 0%, rgba(60, 150, 255, 0.14) 25%, rgba(60, 150, 255, 0.07) 50%, rgba(60, 150, 255, 0.03) 72%, transparent 100%);
}

.decoration-blueball-blur-events-2 {
    right: -800px;
    top: 200px;
    width: 2000px;
    height: 2000px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.28) 0%, rgba(60, 150, 255, 0.14) 25%, rgba(60, 150, 255, 0.07) 50%, rgba(60, 150, 255, 0.03) 72%, transparent 100%);
}

.decoration-blueball-blur-events-bottom-left {
    left: -500px;
    bottom: 0px;
    width: 1400px;
    height: 1400px;
    background-image: radial-gradient(circle closest-side at center, rgba(60, 150, 255, 0.28) 0%, rgba(60, 150, 255, 0.14) 25%, rgba(60, 150, 255, 0.07) 50%, rgba(60, 150, 255, 0.03) 72%, transparent 100%);
}

/* Responsive */
@media (max-width: 1200px) {
    .events-grid-all {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .events-grid-all .event-card-all:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .events-grid-all .event-card-all:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .events-grid-all .event-card-all:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .events-grid-all .event-card-all:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .events-hero-title {
        font-size: 48px;
        line-height: 56px;
    }
    
    .events-hero-description {
        font-size: 18px;
        line-height: 24px;
    }

    /* Compact hero under fixed header (events + calendar; was 152px from desktop rule) */
    .events-hero {
        padding-top: 108px;
        padding-bottom: 28px;
    }

    .page-calendar .events-hero-content {
        gap: 12px;
    }

    .page-calendar .events-hero-title {
        font-size: 34px;
        line-height: 42px;
    }

    .page-calendar .events-hero-description {
        font-size: 15px;
        line-height: 22px;
    }

    .events-grid-all {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .events-grid-all .event-card-all:nth-child(n) {
        grid-column: 1;
    }
    
    .events-grid-all .event-card-all:nth-child(1) {
        grid-row: 1;
    }
    
    .events-grid-all .event-card-all:nth-child(2) {
        grid-row: 2;
    }
    
    .events-grid-all .event-card-all:nth-child(3) {
        grid-row: 3;
    }
    
    .events-grid-all .event-card-all:nth-child(4) {
        grid-row: 4;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding-top: 96px;
        padding-bottom: 20px;
    }

    .page-calendar .events-hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .page-calendar .events-hero-description {
        font-size: 14px;
        line-height: 20px;
    }
}
