/* DSM Gig Guide — lightweight front-end styles.
   Scoped under .dsmgg-* so it won't leak into the theme. */

/* Define the palette on EVERY top-level container the plugin outputs,
   so no element is ever left with undefined variables (which would fall
   back to the theme's dark text on a dark background). */
.dsmgg-upcoming, .dsmgg-calendar, .dsmgg-submit,
.dsmgg-detail, .dsmgg-single, .dsmgg-single-wrap,
.dsmgg-listing, .dsmgg-newsletter-block {
	--dsmgg-bg: #14121a;
	--dsmgg-card: #1d1a24;
	--dsmgg-line: #332e3f;
	--dsmgg-text: #ece8f2;
	--dsmgg-muted: #c2bcd0;
	--dsmgg-accent: #d24e86;
	--dsmgg-accent-2: #9b6cff;
	color: var(--dsmgg-text);
	font-family: inherit;
}

/* Base light colour on all descendants. Specific accent/muted rules
   below use higher specificity (class targets) so they win over this. */
.dsmgg-upcoming, .dsmgg-upcoming *,
.dsmgg-calendar, .dsmgg-calendar *,
.dsmgg-submit, .dsmgg-submit *,
.dsmgg-detail, .dsmgg-detail *,
.dsmgg-listing, .dsmgg-listing *,
.dsmgg-newsletter-block, .dsmgg-newsletter-block *,
.dsmgg-single .dsmgg-detail, .dsmgg-single .dsmgg-detail * {
	color: var(--dsmgg-text);
}
/* Muted (higher specificity than the * rule above via two classes). */
.dsmgg-detail .dsmgg-d-price,
.dsmgg-upcoming .dsmgg-venue,
.dsmgg-listing .dsmgg-venue,
.dsmgg-newsletter-block .dsmgg-venue,
.dsmgg-calendar .dsmgg-dow,
.dsmgg-calendar .dsmgg-daynum,
.dsmgg-detail .dsmgg-tag,
.dsmgg-submit .dsmgg-hint { color: var(--dsmgg-muted); }
/* Accent. */
.dsmgg-upcoming .dsmgg-date,
.dsmgg-listing .dsmgg-date,
.dsmgg-newsletter-block .dsmgg-date,
.dsmgg-detail .dsmgg-datelist li,
.dsmgg-detail .dsmgg-detail-block h3,
.dsmgg-detail .dsmgg-venue-site, .dsmgg-detail .dsmgg-ext-link { color: var(--dsmgg-accent); }
.dsmgg-detail h1, .dsmgg-detail h2, .dsmgg-detail h3,
.dsmgg-single-title { color: var(--dsmgg-text); }
/* Links inside detail meta stay readable (light, accent on hover). */
.dsmgg-detail-meta a, .dsmgg-listing a.dsmgg-band { color: var(--dsmgg-text); }
.dsmgg-detail-meta a:hover { color: var(--dsmgg-accent); }
/* Buttons keep white text on their coloured fill (beats the * rule). */
.dsmgg-ticket-btn, .dsmgg-upcoming .dsmgg-pin, .dsmgg-calendar .dsmgg-pin,
.dsmgg-filter button, .dsmgg-form button { color: #fff; }

/* ---- Upcoming list ---- */
.dsmgg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dsmgg-item {
	display: flex; gap: 14px; align-items: center;
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	border-left: 3px solid var(--dsmgg-accent);
	border-radius: 8px; padding: 10px 14px;
}
.dsmgg-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.dsmgg-body { display: flex; flex-direction: column; gap: 2px; }
.dsmgg-date { font-size: .8rem; letter-spacing: .03em; color: var(--dsmgg-accent); text-transform: uppercase; }
.dsmgg-band { font-weight: 700; font-size: 1.05rem; color: var(--dsmgg-text); text-decoration: none; }
.dsmgg-band:hover { color: var(--dsmgg-accent); }
.dsmgg-venue { font-size: .9rem; color: var(--dsmgg-muted); }
.dsmgg-empty { color: var(--dsmgg-muted); font-style: italic; }

/* ---- Filter bar ---- */
.dsmgg-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dsmgg-filter input, .dsmgg-filter select {
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	color: var(--dsmgg-text); padding: 8px 10px; border-radius: 6px;
}
.dsmgg-filter button {
	background: var(--dsmgg-accent); color: #fff; border: 0;
	padding: 8px 16px; border-radius: 6px; cursor: pointer;
}

/* ---- Calendar grid ---- */
.dsmgg-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dsmgg-cal-head h3 { margin: 0; }
.dsmgg-nav {
	color: var(--dsmgg-text); text-decoration: none; padding: 6px 12px;
	border: 1px solid var(--dsmgg-line); border-radius: 6px;
}
.dsmgg-nav:hover { border-color: var(--dsmgg-accent); color: var(--dsmgg-accent); }

.dsmgg-grid-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dsmgg-dow { text-align: center; font-size: .75rem; color: var(--dsmgg-muted); padding: 4px 0; text-transform: uppercase; }
.dsmgg-cell {
	min-height: 84px; background: var(--dsmgg-card);
	border: 1px solid var(--dsmgg-line); border-radius: 6px; padding: 4px;
	display: flex; flex-direction: column; gap: 3px;
}
.dsmgg-empty-cell { background: transparent; border: 0; }
.dsmgg-cell.has-gig { border-color: var(--dsmgg-accent); }
.dsmgg-cell.is-today { box-shadow: inset 0 0 0 1px var(--dsmgg-accent-2); }
.dsmgg-daynum { font-size: .8rem; color: var(--dsmgg-muted); }
.dsmgg-pin {
	display: block; background: linear-gradient(135deg, var(--dsmgg-accent), var(--dsmgg-accent-2));
	color: #fff; text-decoration: none; font-size: .72rem; line-height: 1.2;
	padding: 3px 5px; border-radius: 4px;
}
.dsmgg-pin-time { display: block; font-weight: 700; opacity: .85; }

/* ---- Submission form ---- */
.dsmgg-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 420px; margin: 0 auto; }
.dsmgg-form-full { display: block; max-width: 640px; margin: 0 auto; }
.dsmgg-form-full label { display: block; margin-bottom: 12px; font-weight: 600; }
.dsmgg-form-full label span { color: var(--dsmgg-accent); }
.dsmgg-form input, .dsmgg-form textarea, .dsmgg-form select {
	width: 100%; background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	color: var(--dsmgg-text); padding: 9px 11px; border-radius: 6px;
	margin-top: 4px; font-weight: 400;
}
.dsmgg-form button {
	background: var(--dsmgg-accent); color: #fff; border: 0;
	padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.dsmgg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dsmgg-loggedin { display: flex; justify-content: space-between; align-items: center;
	padding: 10px 14px; background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	border-radius: 6px; margin-bottom: 16px; }
.dsmgg-link { background: none !important; border: 0; color: var(--dsmgg-accent) !important;
	cursor: pointer; padding: 0 !important; text-decoration: underline; }
.dsmgg-flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.dsmgg-ok { background: #1e3a2a; border: 1px solid #2f6b4a; color: #b6f0cf; }
.dsmgg-err { background: #3a1e22; border: 1px solid #6b2f37; color: #f0b6bf; }

@media (max-width: 600px) {
	.dsmgg-row { grid-template-columns: 1fr; }
	.dsmgg-cell { min-height: 60px; }
	.dsmgg-pin { font-size: .65rem; }
}

/* ---- Social links ---- */
.dsmgg-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.dsmgg-social a {
	display: inline-block; padding: 5px 12px; border-radius: 20px;
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	color: var(--dsmgg-text); text-decoration: none; font-size: .82rem;
}
.dsmgg-social a:hover { border-color: var(--dsmgg-accent); color: var(--dsmgg-accent); }

/* New-venue reveal on submit form */
.dsmgg-newvenue { transition: opacity .15s ease; }

/* ---- Single gig detail block ---- */
.dsmgg-detail { margin-top: 18px; display: grid; gap: 18px; }
.dsmgg-detail-meta p { margin: 4px 0; }
.dsmgg-d-band { font-size: 1.2rem; }
.dsmgg-d-price { color: var(--dsmgg-muted); }
.dsmgg-detail-block h3 { margin: 0 0 8px; font-size: 1.05rem; }
.dsmgg-datelist { list-style: none; padding: 0; margin: 0 0 10px; }
.dsmgg-datelist li { color: var(--dsmgg-accent); font-weight: 600; }
.dsmgg-ticket-btn {
	display: inline-block; background: var(--dsmgg-accent); color: #fff;
	padding: 9px 18px; border-radius: 6px; text-decoration: none; font-weight: 700;
}
.dsmgg-ticket-btn:hover { background: var(--dsmgg-accent-2); color: #fff; }
.dsmgg-support { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dsmgg-support > li { padding: 8px 0; border-bottom: 1px solid var(--dsmgg-line); }
.dsmgg-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.dsmgg-tag {
	display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 20px;
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	color: var(--dsmgg-muted); text-decoration: none;
}
.dsmgg-tag:hover { color: var(--dsmgg-accent); border-color: var(--dsmgg-accent); }
.dsmgg-video { position: relative; padding-bottom: 56.25%; height: 0; }
.dsmgg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; }

/* ---- Submit form repeaters ---- */
.dsmgg-fs { border: 1px solid var(--dsmgg-line); border-radius: 8px; padding: 14px; margin: 4px 0; }
.dsmgg-fs legend { font-weight: 700; padding: 0 8px; }
.dsmgg-hint { font-size: .85rem; color: var(--dsmgg-muted); margin: 0 0 10px; }
.dsmgg-rep-row { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.dsmgg-rep-row input, .dsmgg-rep-row select {
	flex: 1; background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	color: var(--dsmgg-text); padding: 8px 10px; border-radius: 6px;
}
.dsmgg-rm { background: none; border: 0; color: var(--dsmgg-accent); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.dsmgg-addbtn { background: none; border: 1px dashed var(--dsmgg-line); color: var(--dsmgg-text);
	padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.dsmgg-addbtn:hover { border-color: var(--dsmgg-accent); color: var(--dsmgg-accent); }

/* ---- Single gig template chrome ---- */
.dsmgg-single-wrap, .dsmgg-single-wrap p,
.dsmgg-single-content, .dsmgg-single-content * { color: var(--dsmgg-text); }
.dsmgg-single-title { margin: 0 0 16px; color: var(--dsmgg-text); }
.dsmgg-single-poster { text-align: center; }
.dsmgg-single-poster img { max-width: 100%; height: auto; border-radius: 10px; margin: 0 auto 18px; display: block; }
.dsmgg-single-back { margin-top: 24px; }
.dsmgg-single-back a, .dsmgg-detail a:not(.dsmgg-ticket-btn) { color: var(--dsmgg-accent); }

/* ---- Filtered listing (gigs by band / at venue) ---- */
.dsmgg-listing-title { color: var(--dsmgg-text); margin: 0 0 16px; font-size: 1.4rem; }
.dsmgg-listing-title { border-bottom: 1px solid var(--dsmgg-line); padding-bottom: 10px; }
.dsmgg-item.dsmgg-past { opacity: .6; }
.dsmgg-detail-meta a, .dsmgg-listing a.dsmgg-band { color: var(--dsmgg-text); }
.dsmgg-detail-meta a:hover { color: var(--dsmgg-accent); }
.dsmgg-d-band a, .dsmgg-d-venue a { text-decoration: none; border-bottom: 1px dotted currentColor; }

/* ---- Venue / band external link ---- */
.dsmgg-ext-link, .dsmgg-venue-site { font-size: .82rem; color: var(--dsmgg-accent); text-decoration: none; }
.dsmgg-ext-link:hover, .dsmgg-venue-site:hover { text-decoration: underline; }

/* ============================================================
   Layout variants for [gig_upcoming layout="..."]
   All tuned to stand out on a black background.
   ============================================================ */

/* Standout heading */
.dsmgg-heading {
	text-align: center; margin: 0 0 18px; line-height: 1;
	font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800;
	letter-spacing: .04em; text-transform: uppercase; color: var(--dsmgg-text);
}
.dsmgg-heading span {
	display: inline-block; padding: 0 4px; position: relative;
}
.dsmgg-heading span::after {
	content: ""; display: block; height: 4px; width: 64px; margin: 10px auto 0;
	background: var(--dsmgg-accent); border-radius: 2px;
	box-shadow: 0 0 14px var(--dsmgg-accent);
}

/* ---- CARDS: responsive grid with poster on top ---- */
.dsmgg-layout-cards .dsmgg-list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.dsmgg-card { list-style: none; }
.dsmgg-card-link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	border-radius: 12px; overflow: hidden; text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dsmgg-card-link:hover {
	transform: translateY(-3px); border-color: var(--dsmgg-accent);
	box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 1px var(--dsmgg-accent);
}
.dsmgg-card-img img { display: block; width: 100%; height: 160px; object-fit: cover; }
.dsmgg-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.dsmgg-card .dsmgg-date { color: var(--dsmgg-accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.dsmgg-card .dsmgg-band { color: var(--dsmgg-text); font-weight: 700; font-size: 1.05rem; }
.dsmgg-card .dsmgg-venue { color: var(--dsmgg-muted); font-size: .88rem; }

/* ---- TILES: bold poster background with text overlay ---- */
.dsmgg-layout-tiles .dsmgg-list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}
.dsmgg-tile { list-style: none; }
.dsmgg-tile-link {
	position: relative; display: block; min-height: 220px; border-radius: 12px;
	overflow: hidden; text-decoration: none; background: var(--dsmgg-card);
	background-size: cover; background-position: center;
	border: 1px solid var(--dsmgg-line);
	transition: transform .15s ease, box-shadow .15s ease;
}
.dsmgg-tile-link:hover { transform: scale(1.02); box-shadow: 0 0 0 2px var(--dsmgg-accent), 0 10px 30px rgba(0,0,0,.6); }
.dsmgg-tile-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(8,6,12,.95) 0%, rgba(8,6,12,.55) 45%, rgba(8,6,12,.15) 100%);
}
.dsmgg-tile-text {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
	display: flex; flex-direction: column; gap: 4px;
}
.dsmgg-tile .dsmgg-date {
	color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
	font-weight: 700; align-self: flex-start;
	background: var(--dsmgg-accent); padding: 3px 8px; border-radius: 4px;
}
.dsmgg-tile .dsmgg-band { color: #fff; font-weight: 800; font-size: 1.25rem; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.dsmgg-tile .dsmgg-venue { color: #e8e0ef; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.8); }

/* ---- TICKER: horizontal scrolling strip ---- */
.dsmgg-layout-ticker { overflow: hidden; }
.dsmgg-ticker-track {
	display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin;
	-webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.dsmgg-tick {
	flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
	padding: 10px 18px; text-decoration: none; white-space: nowrap;
	border-right: 1px solid var(--dsmgg-line);
}
.dsmgg-tick-date { color: var(--dsmgg-accent); font-weight: 800; font-size: .82rem; text-transform: uppercase; }
.dsmgg-tick-band { color: var(--dsmgg-text); font-weight: 700; }
.dsmgg-tick-venue { color: var(--dsmgg-muted); font-size: .85rem; }
.dsmgg-tick:hover .dsmgg-tick-band { color: var(--dsmgg-accent); }

/* ---- Venue image in detail block ---- */
.dsmgg-venue-img { margin: 0 0 12px; }
.dsmgg-venue-img img {
	max-width: 100%; height: auto; border-radius: 10px; display: block;
	border: 1px solid var(--dsmgg-line);
}
.dsmgg-venue-block { display: block; }

/* ---- Access request form intro ---- */
.dsmgg-request-intro {
	background: var(--dsmgg-card); border: 1px solid var(--dsmgg-line);
	border-left: 3px solid var(--dsmgg-accent); border-radius: 8px;
	padding: 14px 18px; margin-bottom: 18px; color: var(--dsmgg-text);
}
.dsmgg-request-intro p { margin: 0 0 8px; }
.dsmgg-request-intro p:last-child { margin-bottom: 0; }

/* ---- Request form: neat bordered red box, centred ---- */
.dsmgg-request {
	max-width: 680px; margin: 0 auto;
	border: 2px solid var(--dsmgg-accent);
	border-radius: 14px;
	padding: 26px 28px;
	background: rgba(20, 16, 26, 0.6);
	box-shadow: 0 0 0 1px rgba(210, 78, 134, 0.15), 0 10px 30px rgba(0,0,0,0.4);
}
.dsmgg-request .dsmgg-form-full { max-width: 100%; }
.dsmgg-request .dsmgg-request-intro { text-align: left; }
/* Centre the submit button in the request form. */
.dsmgg-request .dsmgg-form-full > button { display: block; margin: 6px auto 0; }

/* ---- Gig archive pagination ---- */
.dsmgg-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.dsmgg-pagination .page-numbers {
	display: inline-block; padding: 7px 13px; border-radius: 6px;
	border: 1px solid var(--dsmgg-line); color: var(--dsmgg-text);
	text-decoration: none; background: var(--dsmgg-card);
}
.dsmgg-pagination .page-numbers.current { background: var(--dsmgg-accent); color: #fff; border-color: var(--dsmgg-accent); }
.dsmgg-pagination .page-numbers:hover { border-color: var(--dsmgg-accent); }
