/* =====================================================================
   OnCue Casting — front-end styles
   Matched to the OnCue theme: Outfit font, green #0B7B3F accents,
   pill buttons, slate text, clean white cards. Bezaf-style structure.
   ===================================================================== */

:root {
	--oc-green: #0B7B3F;
	--oc-green-dark: #095e30;
	--oc-green-soft: #e8f5ee;
	--oc-heading: #1E293B;
	--oc-text: #334155;
	--oc-muted: #64748b;
	--oc-border: #e2e8f0;
	--oc-border-strong: #cbd5e1;
	--oc-bg-soft: #f8fafc;
	--oc-radius: 10px;
	--oc-radius-pill: 40px;
	--oc-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Form shell ---------- */
.oncue-form,
.oncue-gallery,
.oncue-single { font-family: var(--oc-font); color: var(--oc-text); }

.oncue-form { max-width: 940px; margin: 0 auto; }

.oncue-intro { max-width: 940px; margin: 0 auto 28px; color: var(--oc-muted); font-size: 15px; line-height: 1.7; }

.oncue-section {
	border: 1px solid var(--oc-border);
	border-radius: 16px;
	padding: 26px 30px 30px;
	margin: 0 0 26px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.oncue-section > legend {
	font-family: var(--oc-font);
	font-weight: 600;
	font-size: 20px;
	color: var(--oc-heading);
	padding: 0;
	margin-bottom: 20px;
	width: 100%;
	position: relative;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--oc-border);
}
.oncue-section > legend::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 54px; height: 3px;
	background: var(--oc-green);
	border-radius: 3px;
}

.oncue-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 22px;
}

/* ---------- Fields ---------- */
.oncue-field { display: flex; flex-direction: column; }
.oncue-field label {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 7px;
	color: var(--oc-heading);
	letter-spacing: .01em;
}
.oncue-field input[type="text"],
.oncue-field input[type="email"],
.oncue-field input[type="tel"],
.oncue-field input[type="date"],
.oncue-field select,
.oncue-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius);
	font-size: 14px;
	font-family: var(--oc-font);
	color: var(--oc-heading);
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
}
.oncue-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.oncue-field input:focus,
.oncue-field select:focus,
.oncue-field textarea:focus {
	outline: none;
	border-color: var(--oc-green);
	box-shadow: 0 0 0 3px rgba(11, 123, 63, .12);
}
.oncue-field input::placeholder,
.oncue-field textarea::placeholder { color: #94a3b8; }
.oncue-field textarea { grid-column: 1 / -1; resize: vertical; min-height: 96px; }
.oncue-field-textarea { grid-column: 1 / -1; }
.oncue-req { color: var(--oc-green); font-weight: 600; }

.oncue-radios { display: flex; gap: 14px; padding-top: 2px; }
.oncue-radio {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 500 !important; font-size: 14px; color: var(--oc-text) !important;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-pill);
	padding: 9px 18px; cursor: pointer; margin: 0 !important;
	transition: all .15s ease;
}
.oncue-radio:hover { border-color: var(--oc-green); }
.oncue-radio input { accent-color: var(--oc-green); }

/* ---------- Uploads (Bezaf-style tiles) ---------- */
.oncue-upload-hint {
	grid-column: 1 / -1; font-size: 13px; color: var(--oc-muted);
	margin: 0 0 6px; line-height: 1.6;
}
.oncue-field-file {
	border: 1.5px dashed var(--oc-border-strong);
	border-radius: 14px;
	padding: 18px;
	background: var(--oc-bg-soft);
	transition: border-color .15s ease, background .15s ease;
	align-items: stretch;
}
.oncue-field-file:hover { border-color: var(--oc-green); background: var(--oc-green-soft); }
.oncue-field-file label { font-weight: 600; color: var(--oc-heading); }
.oncue-field-file input[type="file"] {
	font-size: 13px; color: var(--oc-muted); margin-top: 8px; width: 100%;
}
.oncue-field-file input[type="file"]::file-selector-button {
	font-family: var(--oc-font); font-weight: 500; font-size: 13px;
	background: #fff; color: var(--oc-green);
	border: 1px solid var(--oc-green); border-radius: var(--oc-radius-pill);
	padding: 7px 16px; margin-right: 12px; cursor: pointer;
	transition: all .15s ease;
}
.oncue-field-file input[type="file"]::file-selector-button:hover { background: var(--oc-green); color: #fff; }
.oncue-current-file { font-size: 12px; margin-bottom: 6px; }
.oncue-current-file a { color: var(--oc-green); }

/* ---------- Acknowledgement ---------- */
.oncue-section-ack { background: var(--oc-bg-soft); }
.oncue-checkbox {
	display: flex; gap: 12px; font-size: 14px; align-items: flex-start;
	color: var(--oc-text); line-height: 1.6;
}
.oncue-checkbox input { margin-top: 3px; accent-color: var(--oc-green); width: 18px; height: 18px; }
.oncue-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Submit ---------- */
.oncue-actions { text-align: center; margin: 10px 0 32px; }
.oncue-submit {
	background: var(--oc-green);
	color: #fff; border: 0;
	padding: 15px 46px;
	border-radius: var(--oc-radius-pill);
	font-family: var(--oc-font);
	font-size: 16px; font-weight: 600; cursor: pointer;
	letter-spacing: .02em;
	transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
	box-shadow: 0 6px 16px rgba(11, 123, 63, .25);
}
.oncue-submit:hover { background: var(--oc-green-dark); transform: translateY(-1px); }
.oncue-submit:disabled { opacity: .7; cursor: default; transform: none; }
.oncue-logout { margin-left: 16px; font-size: 14px; color: var(--oc-muted); text-decoration: underline; }

/* ---------- Notices ---------- */
.oncue-notice {
	padding: 16px 20px; border-radius: 12px; margin: 0 auto 22px;
	max-width: 940px; font-size: 15px; line-height: 1.6;
}
.oncue-notice h3 { margin: 0 0 6px; font-family: var(--oc-font); color: var(--oc-heading); }
.oncue-success { background: var(--oc-green-soft); border: 1px solid #a7d8bd; color: #0f5132; }
.oncue-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* =====================================================================
   Gallery
   ===================================================================== */
.oncue-gallery { font-family: var(--oc-font); }
.oncue-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; justify-content: center; }
.oncue-filter {
	padding: 8px 20px;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-pill);
	font-size: 13px; font-weight: 500; text-decoration: none;
	color: var(--oc-text); background: #fff; transition: all .15s ease;
}
.oncue-filter.is-active, .oncue-filter:hover {
	background: var(--oc-green); color: #fff; border-color: var(--oc-green);
}

.oncue-grid-cards {
	display: grid; gap: 22px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.oncue-grid-cards.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.oncue-grid-cards.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.oncue-grid-cards.cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.oncue-card {
	text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden;
	background: #fff; border: 1px solid var(--oc-border); display: block;
	transition: transform .18s ease, box-shadow .18s ease;
}
.oncue-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.oncue-card-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--oc-bg-soft); }
.oncue-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.oncue-card:hover .oncue-card-img { transform: scale(1.04); }
.oncue-card-body { padding: 14px 16px; }
.oncue-card-name { display: block; font-weight: 600; font-size: 15px; color: var(--oc-heading); }
.oncue-card-cat { display: block; font-size: 12px; color: var(--oc-green); margin-top: 3px; font-weight: 500; }
.oncue-empty { color: var(--oc-muted); text-align: center; padding: 40px 0; grid-column: 1 / -1; }

/* Pagination */
.oncue-pagination {
	display: flex; justify-content: center; align-items: center; gap: 8px;
	margin: 34px 0 0; flex-wrap: wrap;
}
.oncue-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--oc-border-strong); border-radius: var(--oc-radius-pill);
	text-decoration: none; color: var(--oc-text); font-size: 14px; font-weight: 500;
	background: #fff; transition: all .15s ease;
}
.oncue-pagination .page-numbers:hover { border-color: var(--oc-green); color: var(--oc-green); }
.oncue-pagination .page-numbers.current {
	background: var(--oc-green); color: #fff; border-color: var(--oc-green);
}
.oncue-pagination .page-numbers.dots { border: 0; background: transparent; }

/* Carousel */
.oncue-carousel { overflow: hidden; }
.oncue-carousel-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.oncue-carousel-track .oncue-card { flex: 0 0 230px; scroll-snap-align: start; }

/* =====================================================================
   Single profile
   ===================================================================== */
.oncue-single { max-width: 1120px; margin: 0 auto; padding: 20px; font-family: var(--oc-font); }
.oncue-single-head { margin-bottom: 24px; }
.oncue-single-name { margin: 0 0 8px; color: var(--oc-heading); font-weight: 600; }
.oncue-single-cat {
	display: inline-block; background: var(--oc-green); color: #fff;
	padding: 5px 16px; border-radius: var(--oc-radius-pill); font-size: 13px; font-weight: 500;
}
.oncue-single-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.oncue-single-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.oncue-single-photos figure { margin: 0; }
.oncue-single-photos img { width: 100%; border-radius: 12px; display: block; }
.oncue-single-photos figcaption { font-size: 12px; color: var(--oc-muted); margin-top: 5px; text-align: center; }
.oncue-stats-table { width: 100%; border-collapse: collapse; }
.oncue-stats-table th, .oncue-stats-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--oc-border); font-size: 14px; }
.oncue-stats-table th { color: var(--oc-muted); font-weight: 500; width: 45%; }
.oncue-stats-table td { color: var(--oc-heading); font-weight: 500; }

/* ---------- Login ---------- */
.oncue-login { max-width: 420px; margin: 0 auto; padding: 30px; border: 1px solid var(--oc-border); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.oncue-login label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--oc-heading); }
.oncue-login input[type="text"], .oncue-login input[type="password"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius); font-size: 14px; box-sizing: border-box; margin-bottom: 16px; font-family: var(--oc-font);
}
.oncue-login input:focus { outline: none; border-color: var(--oc-green); box-shadow: 0 0 0 3px rgba(11,123,63,.12); }
.oncue-login .button, .oncue-login input[type="submit"] {
	background: var(--oc-green); color: #fff; border: 0; padding: 12px 28px;
	border-radius: var(--oc-radius-pill); font-weight: 600; cursor: pointer; font-family: var(--oc-font); font-size: 15px;
}
.oncue-login .button:hover, .oncue-login input[type="submit"]:hover { background: var(--oc-green-dark); }
.oncue-login-help { margin-top: 14px; font-size: 13px; text-align: center; }
.oncue-login-help a { color: var(--oc-green); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.oncue-grid { grid-template-columns: 1fr; }
	.oncue-grid-cards, .oncue-grid-cards.cols-2, .oncue-grid-cards.cols-3, .oncue-grid-cards.cols-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.oncue-single-grid { grid-template-columns: 1fr; }
	.oncue-section { padding: 22px 18px 24px; }
}
@media (max-width: 480px) {
	.oncue-grid-cards, .oncue-grid-cards.cols-2, .oncue-grid-cards.cols-3, .oncue-grid-cards.cols-5 { grid-template-columns: 1fr 1fr; gap: 14px; }
}
