/* Christmas on the Hill Core – shortcode styles.
   Uses the theme's CSS variables when present, with sensible dark-theme fallbacks. */

.och-card {
	background: var(--oth-card, rgba(255, 255, 255, .06));
	border: 1px solid var(--oth-card-border, rgba(245, 197, 66, .22));
	border-radius: var(--oth-radius, 18px);
	padding: 22px;
	box-shadow: var(--oth-shadow, 0 10px 30px rgba(0, 0, 0, .35));
	color: var(--oth-snow, #f6fbff);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.och-card > *:last-child { margin-bottom: 0; }
.och-card__title {
	font-family: var(--oth-font-display, Georgia, serif);
	font-size: 1.45rem; color: var(--oth-gold, #f5c542);
	margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--oth-card-border, rgba(245, 197, 66, .22));
}
.och-muted { color: var(--oth-muted, #a9bcc9); }

/* Buttons */
.och-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
	background: linear-gradient(180deg, var(--oth-red-2, #ef3d55), var(--oth-red, #c8102e)); color: #fff; border: 0;
	border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 700;
	box-shadow: 0 6px 16px rgba(200, 16, 46, .4); transition: transform .15s;
}
.och-btn:hover { transform: translateY(-2px); color: #fff; }
.och-btn--ghost { background: transparent; border: 2px solid var(--oth-gold, #f5c542); color: var(--oth-gold, #f5c542); box-shadow: none; }
.och-btn--ghost:hover { background: rgba(245, 197, 66, .12); color: #fff; }

/* Visit */
.och-address { font-size: 1.05rem; margin: 0 0 14px; }

/* Modal */
.och-modal[hidden] { display: none; }
.och-modal {
	position: fixed; inset: 0; background: rgba(3, 9, 14, .8); z-index: 100000;
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.och-modal__box {
	position: relative; background: var(--oth-night-2, #0f2533); color: #fff; max-width: 420px; width: 100%;
	border: 1px solid var(--oth-card-border, rgba(245, 197, 66, .3)); border-radius: 20px; padding: 28px; text-align: center;
}
.och-modal__close {
	position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.och-modal__links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.och-qr { max-width: 200px; background: #fff; padding: 8px; border-radius: 12px; margin: 10px auto; display: block; }

/* Jukebox */
.och-jukebox__frame { width: 100%; border: 0; border-radius: 12px; background: rgba(0, 0, 0, .25); }

/* Radio */
.och-radio { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.och-radio__band { color: var(--oth-muted, #a9bcc9); font-weight: 700; letter-spacing: .1em; }
.och-radio__freq { font-family: var(--oth-font-display, Georgia, serif); font-size: 2.6rem; color: #fff; line-height: 1; }

/* Schedule */
.och-schedule__rows { list-style: none; margin: 0 0 14px; padding: 0; }
.och-schedule__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.och-schedule__rows li:last-child { border-bottom: 0; }

/* Status pill */
.och-status {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
	background: rgba(255, 255, 255, .1);
}
.och-status__dot { width: 10px; height: 10px; border-radius: 50%; background: #8a8a8a; }
.och-status--on { background: rgba(61, 220, 132, .16); color: #7dffb4; }
.och-status--on .och-status__dot { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: och-pulse 1.4s infinite; }
.och-status--later { background: rgba(245, 197, 66, .16); color: var(--oth-gold, #f5c542); }
.och-status--later .och-status__dot { background: var(--oth-gold, #f5c542); }
.announce-bar .och-status { background: rgba(0, 0, 0, .25); color: #fff; }
@keyframes och-pulse { 50% { opacity: .35; } }

/* Countdown */
.och-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.och-countdown__unit { background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 12px 4px; }
.och-countdown__num { display: block; font-family: var(--oth-font-display, Georgia, serif); font-size: 2.2rem; line-height: 1; color: #fff; }
.och-countdown__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--oth-muted, #a9bcc9); }
.och-countdown.is-done { display: block; font-size: 1.3rem; font-weight: 700; padding: 10px; }

/* Displays */
.och-displays { list-style: none; margin: 0 0 14px; padding: 0; }
.och-displays li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.och-displays li:last-child { border-bottom: 0; }

/* Stats */
.och-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.och-stat {
	background: var(--oth-card, rgba(255, 255, 255, .06)); border: 1px solid var(--oth-card-border, rgba(245, 197, 66, .22));
	border-radius: 16px; padding: 18px 12px; text-align: center;
}
.och-stat__num { display: block; font-family: var(--oth-font-display, Georgia, serif); font-size: 2.4rem; color: var(--oth-gold, #f5c542); line-height: 1.1; }
.och-stat__label { font-size: .85rem; color: var(--oth-muted, #a9bcc9); }

/* Videos */
.och-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 14px; }
.och-video { margin: 0; }
.och-video__play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16 / 9; }
.och-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .3s; }
.och-video__play:hover img { opacity: 1; transform: scale(1.04); }
.och-video__icon {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
	background: var(--oth-red, #c8102e); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 4px;
}
.och-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; display: block; }
.och-video figcaption { font-size: .85rem; margin-top: 6px; color: var(--oth-muted, #a9bcc9); }

/* Slider */
.och-slider { position: relative; overflow: hidden; border-radius: inherit; aspect-ratio: 16 / 10; background: #000; }
.och-slider__track, .och-slide { height: 100%; }
.och-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.och-slide.is-active { opacity: 1; z-index: 1; }
.och-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.och-slide figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-weight: 600;
	background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
}
.och-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: rgba(10, 24, 34, .7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.och-slider__prev { left: 10px; }
.och-slider__next { right: 10px; }
.och-slider__nav:hover { background: var(--oth-red, #c8102e); }

@media (prefers-reduced-motion: reduce) {
	.och-status--on .och-status__dot { animation: none; }
	.och-slide { transition: none; }
}

/* ---- v2: cancelled state, counters, best-time, QR, video list ---------------------------------------- */
.och-cancel-bar { background: #8f0b1f; color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; position: relative; z-index: 95; }
.och-status--cancelled { background: rgba(200, 16, 46, .2); color: #ff9aa8; }
.och-status--cancelled .och-status__dot { background: #ff4d63; }
.och-counters { grid-template-columns: repeat(var(--och-cols, 3), minmax(0, 1fr)); }
.och-counter__icon { display: block; font-size: 1.6rem; color: var(--oth-gold, #f5c542); margin-bottom: 4px; }
.och-stat { text-align: center; }
.och-qrfig { margin: 0; text-align: center; }
.och-qrfig figcaption { font-size: .85rem; color: var(--oth-muted, #a9bcc9); }
.och-qr svg { display: block; width: 100%; height: auto; }
.och-besttime__line { margin: 0 0 12px; line-height: 1.7; }
.och-besttime__bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-bottom: 18px; }
.och-besttime__bar { flex: 1; position: relative; background: rgba(255, 255, 255, .22); border-radius: 3px 3px 0 0; min-height: 4px; }
.och-besttime__bar.is-quiet { background: #3ddc84; } .och-besttime__bar.is-busy { background: var(--oth-red, #c8102e); }
.och-besttime__bar i { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-style: normal; font-size: .6rem; color: var(--oth-muted, #a9bcc9); margin-top: 2px; white-space: nowrap; }
.och-besttime__bar:not(.is-quiet):not(.is-busy) i { display: none; }
.och-notice { background: rgba(245, 197, 66, .15); border-left: 3px solid var(--oth-gold, #f5c542); padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
@media (max-width: 520px) { .och-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
