/* ============================================================
   Layouts for a host's events page (includes/host_themes.php).
   Classic's grid is styled in host.php; these are the others,
   plus past events, which every layout shows.
   ============================================================ */

/* ── Posters (and Night) ── */
.ht-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-bottom: 40px; }
.ht-poster { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--pp-text); text-decoration: none; }
.ht-poster-img { position: relative; display: block; margin-bottom: 10px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--pp-surface-3); }
.ht-poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ht-poster:hover .ht-poster-img img { transform: scale(1.03); }
.ht-poster-date { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pp-accent); }
.ht-poster-name { font: 700 22px/1.2 'Archivo', sans-serif; font-stretch: 88%; letter-spacing: -0.02em; color: var(--pp-text); overflow-wrap: anywhere; }
.ht-poster-meta { font-size: 14px; color: var(--pp-text-muted); }
.ht-poster-price { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--pp-text); }

/* ── Listings ── */
.ht-list { list-style: none; margin: 0 0 40px; padding: 0; background: var(--pp-surface); border: 1px solid var(--pp-border); border-radius: 16px; overflow: hidden; }
.ht-list > li + li { border-top: 1px solid var(--pp-divider); }
.ht-row { display: flex; align-items: center; gap: 18px; padding: 16px 20px; color: var(--pp-text); text-decoration: none; transition: background-color .15s; }
.ht-row:hover { background: var(--pp-bg-alt); }
.ht-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; flex-shrink: 0; line-height: 1.1; }
.ht-date small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-text-faint); }
.ht-date small:first-child { color: var(--pp-accent); }
.ht-date b { font: 700 28px/1.05 'Archivo', sans-serif; font-stretch: 88%; color: var(--pp-text); }
.ht-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--pp-surface-3); }
.ht-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ht-name { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ht-meta { font-size: 14px; color: var(--pp-text-muted); }
.ht-meta .sr-date { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ht-price { flex-shrink: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ht-go { flex-shrink: 0; width: auto; }

/* ── Spotlight ── */
.ht-spot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 32px; border-radius: 20px; overflow: hidden; background: var(--pp-surface); border: 1px solid var(--pp-border); color: var(--pp-text); text-decoration: none; }
.ht-spot-img { position: relative; display: block; min-height: 340px; background: var(--pp-surface-3); }
.ht-spot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-spot-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 36px 40px; min-width: 0; }
.ht-spot-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--pp-accent-dim); color: var(--pp-accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ht-spot-name { font: 700 clamp(28px, 3.4vw, 44px)/1.05 'Archivo', sans-serif; font-stretch: 88%; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.ht-spot-meta { font-size: 16px; line-height: 1.5; color: var(--pp-text-muted); }
.ht-spot-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ht-spot-cta .btn { width: auto; }
.ht-spot-cta b { font-size: 17px; }
.ht-sub { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--pp-text); }

/* ── Night: posters on a pure black page ── */
body.theme-night { background-color: #000; }
body.theme-night main { --pp-bg: #000; --pp-bg-alt: #0b0b0c; --pp-surface: #0f0f11; --pp-surface-2: #0f0f11; color: var(--pp-text); }
body.theme-night .host-avatar, body.theme-night .host-avatar-placeholder { border-color: var(--pp-surface); }

/* ── Past events ── */
.ht-past { margin: 8px 0 40px; }
.ht-past h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: var(--pp-text); }
.ht-past-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ht-past-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--pp-text); text-decoration: none; }
.ht-past-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 6px; background: var(--pp-surface-3); filter: grayscale(.35); opacity: .85; transition: opacity .15s, filter .15s; }
.ht-past-card:hover img { opacity: 1; filter: none; }
.ht-past-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ht-past-date { font-size: 13px; color: var(--pp-text-faint); }

@media (max-width: 1024px) {
    .ht-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ht-past-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .ht-posters { grid-template-columns: 1fr; gap: 28px; }
    .ht-spot { grid-template-columns: 1fr; }
    .ht-spot-img { min-height: 0; aspect-ratio: 4 / 3; }
    .ht-spot-body { padding: 22px; }
    .ht-row { gap: 12px; padding: 14px; }
    .ht-thumb { display: none; }
    .ht-date { width: 44px; }
    .ht-date b { font-size: 24px; }
    .ht-go { display: none; }
    .ht-past-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 420px) {
    .ht-past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .ht-poster-img img { transition: none; } }
