/* FOMO Showtimes — vertical card grid
   Version: 1.4 (cards)
   Safe to drop in as your entire assets/styles.css.
*/

/* -------- Base container -------- */
.fomo-showtimes { margin-top: 8px; }

/* -------- Day headings -------- */
.fomo-day {
  margin: 16px 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

/* -------- Card grid -------- */
.fomo-card-grid {
  display: grid;
  gap: 16px;
}

/* 4 across on wide, responsive down */
.fomo-card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .fomo-card-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .fomo-card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .fomo-card-grid.cols-4 { grid-template-columns: 1fr; } }

/* -------- Film card (vertical) -------- */
.film-card.vert {
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--accent-1) !important;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Poster top */
.poster-lg {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #f3f4f6;
}
.poster-lg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.poster-ph { background: linear-gradient(180deg, #f8fafc, #eef2f7); }

/* Body */
.film-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #ffffff;
}

.film-meta {
  color: #6b7280;
  font-size: .9rem;
}

/* -------- Session time "chips" -------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: .9rem;
  color: #0b4a7d;
  background: #eef7ff;
  border: 1px solid #d7ebff;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.chip:hover {
  background: #e1f1ff;
  border-color: #cfe6ff;
}
.chip:active {
  transform: translateY(1px);
}
.chip:focus-visible,
.buy:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
.chip-sub {
  color: #6b7280;
  font-size: .85em;
}

/* Optional badges (if you render seats/price inline) */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #111827;
}
.badge.seats { background: #eef8ff; color: #0b4a7d; }
.badge.price { background: #e8f7ec; color: #1b5e20; }

/* Optional "Buy" button (not required, times are clickable) */
.buy {
  align-self: flex-start;
  text-decoration: none;
  background: #0ea5e9;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: background-color .15s ease, transform .05s ease;
}
.buy:hover { background: #0284c7; }
.buy:active { transform: translateY(1px); }

/* -------- Responsive tweaks -------- */
@media (max-width: 480px) {
  .film-body { padding: 10px; }
  .chip { padding: 6px 9px; font-size: .88rem; }
}

/* -------- Dark mode friendliness -------- */
@media (prefers-color-scheme: dark) {
  .film-card.vert { background: #0b0f14; border-color: #1e293b; box-shadow: none; }
  .poster-ph { background: #0f172a; }
  .film-meta, .chip-sub { color: #9aa4b2; }
  .chip { background: #0b2a43; border-color: #0f3a5f; color: #cfe6ff; }
  .chip:hover { background: #0d3552; border-color: #11466f; }
  .badge { background: #0f172a; color: #d1d5db; }
  .badge.seats { background: #0b2a43; color: #cfe6ff; }
  .badge.price { background: #0d3a20; color: #b9f6ca; }
  .buy { background: #0284c7; }
  .buy:hover { background: #0369a1; }
}

/* -------- Legacy helpers kept for compatibility (unused in cards) -------- */
.films { display: grid; gap: 10px; } /* old list wrapper */
.film-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; } /* old row */
.poster-sm { width: 60px; height: 90px; border-radius: 6px; overflow: hidden; background: #f3f4f6; }
.poster-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fomo-day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 8px; }

.fomo-showtimes .sessions { list-style: none; margin: 0; padding: 0; }
.fomo-showtimes .session {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed #eee;
}
.fomo-showtimes .session:first-child { border-top: 0; }
.fomo-showtimes .session .screen { color:#6b7280; margin-left:6px; font-size:0.9em; }
