/* Sparkify Events magazine — sits on top of style.css (dark "social night" theme). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&display=swap');

.ev-wrap { padding-top: 7.5rem; --ev-pink: #FF6FA5; --ev-line: rgba(255,255,255,.1); }
.ev-serif { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -.01em; }
.ev-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ev-pink); margin-bottom: .5rem; }
.ev-lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46rem; }
.ev-crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.ev-crumbs a { color: var(--text-muted); text-decoration: none; }
.ev-crumbs a:hover { color: #fff; }
.ev-crumbs span { opacity: .5; margin: 0 .3rem; }
.ev-wrap a { color: inherit; }

/* Masthead */
.ev-masthead { padding-bottom: 2rem; border-bottom: 1px solid var(--ev-line); margin-bottom: 2.5rem; }
.ev-masthead h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 1rem; }

/* City chips */
.ev-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.ev-chip { padding: .45rem 1rem; border: 1px solid var(--ev-line); border-radius: 999px; font-size: .88rem; color: var(--text-muted) !important; text-decoration: none; transition: .2s; }
.ev-chip small { background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 .45rem; margin-left: .25rem; font-size: .75rem; }
.ev-chip:hover { color: #fff !important; border-color: var(--primary); }
.ev-chip.is-active { background: #fff; color: var(--bg-dark) !important; border-color: #fff; font-weight: 600; }
.ev-chip.is-active small { background: rgba(0,0,0,.1); }

/* Cards */
.ev-card { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ev-card__media { position: relative; display: block; aspect-ratio: 16/10; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a1d4a, #13132e); }
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ev-card:hover .ev-card__media img { transform: scale(1.04); }
.ev-card__title { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0 0 .4rem; }
.ev-card__title a { text-decoration: none; }
.ev-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ev-card__dek { font-size: 1.1rem; color: #ddd; margin-bottom: .6rem; }
.ev-card__excerpt { color: var(--text-muted); font-size: .95rem; margin-bottom: .6rem; }
.ev-card.is-past .ev-card__media img { filter: grayscale(.6); opacity: .8; }

.ev-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: var(--text-muted); }
.ev-meta i { color: var(--primary); margin-right: .25rem; }
.ev-meta--lg { font-size: .98rem; margin-top: 1.2rem; }

.ev-tile { position: absolute; top: .8rem; left: .8rem; background: #fff; color: #111; border-radius: 10px; text-align: center; padding: .3rem .65rem .35rem; line-height: 1; box-shadow: 0 6px 18px rgba(0,0,0,.3); min-width: 3.1rem; }
.ev-tile span { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c2185b; margin-bottom: .2rem; }
.ev-tile b { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; }
.ev-flag { position: absolute; top: .8rem; right: .8rem; background: rgba(10,10,31,.75); backdrop-filter: blur(6px); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; }
.ev-flag--hot { background: var(--ev-pink); color: #fff; }
.ev-flag--live { background: #16a34a; color: #fff; }

/* Lead story */
.ev-card--lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; }
.ev-card--lead .ev-card__media { aspect-ratio: 4/3; border-radius: 22px; }
.ev-card--lead .ev-card__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.05; margin-bottom: .8rem; }
.ev-card--lead .ev-tile { top: 1.2rem; left: 1.2rem; transform: scale(1.15); transform-origin: top left; }

.ev-front { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; margin-bottom: 3.5rem; }
.ev-front--single { grid-template-columns: 1fr; }
.ev-front:not(.ev-front--single) .ev-card--lead { grid-template-columns: 1fr; }
.ev-front:not(.ev-front--single) .ev-card--lead .ev-card__media { aspect-ratio: 16/9; }
.ev-front__side { display: flex; flex-direction: column; gap: 2rem; padding-left: 2.5rem; border-left: 1px solid var(--ev-line); }
.ev-front__side .ev-card__title { font-size: 1.2rem; }

/* Row (city calendar) */
.ev-list { display: flex; flex-direction: column; }
.ev-card--row { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--ev-line); }
.ev-card--row .ev-card__media { aspect-ratio: 4/3; border-radius: 12px; }
.ev-card--row .ev-card__body { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.ev-card--row .ev-tile { position: static; box-shadow: none; }

/* Sections */
.ev-section { margin: 3.5rem auto; }
.ev-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid #fff; padding-bottom: .6rem; margin-bottom: 1.8rem; }
.ev-section__head h2 { font-size: 1.9rem; margin: 0; }
.ev-section__head span, .ev-section__head a { color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.ev-section__head a:hover { color: #fff; }
.ev-month { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 2rem 0 1rem; font-weight: 600; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.2rem 1.8rem; }
.ev-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ev-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ev-city { display: flex; flex-direction: column; gap: .2rem; padding: 1.4rem; text-decoration: none; transition: .2s; }
.ev-city b { font-size: 1.35rem; }
.ev-city small { color: var(--text-muted); }
.ev-city:hover { border-color: var(--primary); transform: translateY(-2px); }

.ev-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.5rem; margin: 3.5rem 0; background: linear-gradient(120deg, rgba(155,81,224,.25), rgba(0,210,255,.08)); }
.ev-band h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.ev-band p { color: var(--text-muted); margin: 0; }
.ev-band__cta { display: flex; gap: .8rem; flex-wrap: wrap; flex-shrink: 0; }
.ev-band .btn { padding: .8rem 1.4rem; }

.ev-empty { text-align: center; padding: 5rem 0; }
.ev-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Article */
.ev-article__head { max-width: 900px; text-align: center; padding-bottom: 2rem; }
.ev-article__head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; margin: .3rem 0 1rem; }
.ev-article__head .ev-lede { margin: 0 auto; font-size: 1.25rem; }
.ev-article__head .ev-meta { justify-content: center; }
.ev-ended { background: rgba(255,255,255,.06); border: 1px solid var(--ev-line); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: 1.5rem; text-align: center; color: var(--text-muted); }
.ev-ended a { color: #fff; margin-left: .4rem; }
.ev-hero { margin-bottom: 3rem; }
.ev-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 24px; display: block; }
.ev-hero figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; text-align: right; }

.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; }
.ev-body { font-size: 1.1rem; line-height: 1.85; color: #e6e6ef; max-width: 690px; }
.ev-body > p:first-of-type::first-letter { font-family: 'Fraunces', Georgia, serif; float: left; font-size: 4.2rem; line-height: .9; padding: .35rem .6rem 0 0; font-weight: 800; color: #fff; }
.ev-body p, .ev-body ul, .ev-body ol, .ev-body blockquote { margin-bottom: 1.4rem; }
.ev-body h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.8rem; margin: 2.4rem 0 1rem; color: #fff; }
.ev-body h3 { font-size: 1.25rem; margin: 2rem 0 .8rem; color: #fff; }
.ev-body ul, .ev-body ol { padding-left: 1.4rem; }
.ev-body li { margin-bottom: .4rem; }
.ev-body a { color: #fff; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }
.ev-body blockquote { font-family: 'Fraunces', Georgia, serif; font-size: 1.55rem; line-height: 1.35; color: #fff; border-left: 3px solid var(--ev-pink); padding: .2rem 0 .2rem 1.4rem; }
.ev-body img { max-width: 100%; border-radius: 14px; }

.ev-aside { position: sticky; top: 6.5rem; }
.ev-info { padding: 1.6rem; }
.ev-info__title { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; font-weight: 700; }
.ev-info dl { margin: 0 0 1.4rem; }
.ev-info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .25rem; }
.ev-info dt i { color: var(--primary); width: 1.1rem; }
.ev-info dd { margin: 0 0 1.1rem; font-size: .98rem; }
.ev-info dd a { color: #fff; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }
.ev-btn-block { display: block; width: 100%; text-align: center; margin-bottom: .7rem; padding: .85rem 1rem; }
.ev-share { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--ev-line); padding-top: 1rem; margin-top: .6rem; }
.ev-share span { font-size: .8rem; color: var(--text-muted); margin-right: auto; }
.ev-share a, .ev-share button { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ev-line); background: none; color: #fff; cursor: pointer; text-decoration: none; transition: .2s; }
.ev-share a:hover, .ev-share button:hover { border-color: var(--primary); background: rgba(155,81,224,.2); }

.ev-creators { padding: 1.8rem; margin: 2.5rem 0; border-color: rgba(255,111,165,.4); background: linear-gradient(135deg, rgba(255,111,165,.12), rgba(155,81,224,.1)); }
.ev-creators h2 { font-size: 1.5rem; margin: .2rem 0 .6rem; }
.ev-creators p { font-size: 1rem; margin-bottom: 1rem; }
.ev-creators .btn { padding: .8rem 1.6rem; text-decoration: none; }

.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin-bottom: 2rem; }
.ev-gallery a { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.ev-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; transition: transform .3s; }
.ev-gallery a:hover img { transform: scale(1.04); }

/* Gallery lightbox */
.ev-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(8,6,20,.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.ev-lb[hidden] { display: none; }
.ev-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); user-select: none; }
.ev-lb__close, .ev-lb__nav { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .2s; }
.ev-lb__close:hover, .ev-lb__nav:hover { background: rgba(155,81,224,.45); border-color: var(--primary); }
.ev-lb__close { top: 1rem; right: 1rem; }
.ev-lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.ev-lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.ev-lb__count { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); font-size: .85rem; color: rgba(255,255,255,.7); letter-spacing: .08em; }
@media (max-width: 768px) {
    .ev-lb { padding: 3.5rem .5rem; }
    .ev-lb__nav { top: auto; bottom: .6rem; transform: none; width: 2.6rem; height: 2.6rem; }
}
.ev-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ev-tags span { font-size: .85rem; color: var(--text-muted); border: 1px solid var(--ev-line); border-radius: 999px; padding: .2rem .8rem; }

/* Responsive */
@media (max-width: 991px) {
    .ev-front { grid-template-columns: 1fr; }
    .ev-front__side { padding-left: 0; border-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .ev-card--lead { grid-template-columns: 1fr; }
    .ev-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .ev-aside { position: static; order: -1; }
    .ev-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ev-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .ev-wrap { padding-top: 6rem; }
    /* style.css forces section { padding: 4rem 0 !important } on mobile, which would drop .container's side padding */
    .ev-wrap section.container, .ev-wrap div.ev-masthead, .ev-wrap div.ev-article__head { padding: 1rem 1.25rem !important; }
    .ev-wrap .ev-section { margin: 1.5rem auto; }
    .ev-front__side, .ev-grid--3 { grid-template-columns: 1fr; }
    .ev-card--row { grid-template-columns: 110px 1fr; gap: 1rem; }
    .ev-card--row .ev-card__body { grid-template-columns: 1fr; }
    .ev-card--row .ev-tile, .ev-card--row .ev-card__excerpt { display: none; }
    .ev-card--row .ev-card__title { font-size: 1.1rem; }
    .ev-body { font-size: 1.03rem; }
    .ev-band { padding: 1.6rem; }
    .ev-hero img { border-radius: 14px; }
}
