/**
 * StageBook front-end styles: cards, single views, and the proposal form.
 * Mobile-first; grid collapses below 600px.
 *
 * @package StageBook
 * @since   1.0.0
 */

/* ---------- Cards ---------- */

.stagebook-card {
	position: relative; /* stretched-link anchor */
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease;
}

.stagebook-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Stretched link: the title link's overlay makes the whole card clickable. */
.stagebook-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.stagebook-card-thumb {
	display: block;
	line-height: 0;
}

.stagebook-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

/* Decorative slot shown when a card has no featured image. */
.stagebook-card-thumb-fallback {
	aspect-ratio: 3 / 2;
	background: #eef3f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stagebook-card-thumb-fallback::after {
	content: "";
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(34, 113, 177, 0.15);
}

.stagebook-card-body {
	padding: 16px;
}

.stagebook-card-title {
	margin: 0 0 8px;
	font-size: 1.2em;
}

.stagebook-card-title a {
	text-decoration: none;
}

.stagebook-card-description,
.stagebook-card-tagline {
	margin: 0 0 8px;
	font-size: 0.95em;
}

.stagebook-card-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.85em;
	color: #555;
}

/* Compact connected-content variant. */
.stagebook-card-compact .stagebook-card-body {
	padding: 12px;
}

.stagebook-card-compact .stagebook-card-title {
	font-size: 1.05em;
	margin-bottom: 4px;
}

.stagebook-card-compact .stagebook-card-description,
.stagebook-card-compact .stagebook-card-tagline {
	font-size: 0.9em;
	margin-bottom: 0;
}

/* ---------- Connected-content card grid ---------- */

.stagebook-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.stagebook-card-grid .stagebook-card {
	max-width: none;
}

/* ---------- Single views ---------- */

.stagebook-single-title {
	margin-top: 0;
}

.stagebook-single-tagline {
	font-style: italic;
	color: #555;
	margin-top: -0.5em;
}

.stagebook-single-thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.stagebook-single-details {
	list-style: none;
	margin: 1em 0;
	padding: 1em;
	background: #f7f7f7;
	border-radius: 8px;
}

.stagebook-detail {
	margin: 0 0 0.4em;
}

.stagebook-detail-label {
	font-weight: 600;
}

.stagebook-eventbrite {
	margin: 1.5em 0;
}

.stagebook-eventbrite-button {
	display: inline-block;
	padding: 12px 24px;
	background: #f05537;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

.stagebook-eventbrite-button:hover,
.stagebook-eventbrite-button:focus {
	background: #d63e22;
	color: #fff;
}

/* ---------- Archives ---------- */

.stagebook-archive {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.stagebook-archive-title {
	margin: 0 0 1em;
}

.stagebook-archive .navigation {
	margin-top: 2em;
}

/* ---------- Proposal form ---------- */

.stagebook-proposal-form {
	max-width: 640px;
}

/* "Before you start" guidance accordion. */
.stagebook-guidance {
	border: 1px solid #72aee6;
	border-radius: 8px;
	background: #f0f6fc;
	margin: 0 0 1.5em;
}

.stagebook-guidance summary {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 16px;
}

.stagebook-guidance-body {
	padding: 0 16px;
}

.stagebook-guidance-body ul {
	margin: 0.5em 0 1em;
	padding-left: 1.25em;
}

.stagebook-guidance .stagebook-guidance-ack {
	border-top: 1px solid #c5d9ed;
	margin: 0 16px;
	padding: 12px 0 16px;
}

.stagebook-form-section {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px;
	margin: 0 0 1.5em;
}

.stagebook-form-section legend {
	font-weight: 600;
	padding: 0 8px;
}

.stagebook-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

/* font-family/size: inherit overrides the browser's monospace textarea default
   so all controls use the site font. */
.stagebook-form-field input[type="text"],
.stagebook-form-field input[type="url"],
.stagebook-form-field input[type="email"],
.stagebook-form-field input[type="number"],
.stagebook-form-field select,
.stagebook-form-field textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: inherit;
}

.stagebook-form-checkbox label {
	font-weight: 400;
}

.stagebook-form-checkbox input {
	margin-right: 6px;
}

.stagebook-required {
	color: #b32d2e;
}

.stagebook-submit-button {
	padding: 12px 32px;
	border: 0;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
}

.stagebook-submit-button:hover,
.stagebook-submit-button:focus {
	background: #135e96;
}

/* Honeypot: visually removed, still present for bots. */
.stagebook-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stagebook-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 0 0 1.5em;
}

.stagebook-notice-success {
	background: #edfaef;
	border: 1px solid #00a32a;
}

.stagebook-notice-error {
	background: #fcf0f1;
	border: 1px solid #b32d2e;
}

.stagebook-notice-info {
	background: #f0f6fc;
	border: 1px solid #72aee6;
}

/* ---------- Responsive ---------- */

@media (min-width: 600px) {
	.stagebook-program-card,
	.stagebook-artist-card {
		max-width: 420px;
	}

	.stagebook-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.stagebook-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
