/* ============================================================
   Open Courses Detail - Coming Up & Be The Opener
   Light hero: #f4f2f8 | Accent: #532B83
============================================================ */

/* === 컨테이너 === */
article.single-post-article.ocd-article {
	max-width: 900px;
}

.ocd-container {
}

/* === 히어로 섹션 (밝은 카드) === */
.ocd-hero {
	background: #f4f2f8;
	border-radius: 16px;
	padding: 32px 32px 28px;
	margin: 0 auto 32px;
	max-width: 480px;
	text-align: center;
}

/* === 상태 뱃지 === */
.ocd-status {
	margin-bottom: 20px;
}

.ocd-badge {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.03em;
	background: #532B83;
}

.badge-confirmed {
	background: #532B83;
}

.badge-upcoming {
	background: #7c5daa;
}

.badge-closed {
	background: #bbb;
	color: #fff;
}

/* === Coming Up: 카운트다운 타이머 === */
.ocd-countdown {
	margin-bottom: 20px;
}

.ocd-countdown-label {
	font-size: 13px;
	color: #888;
	margin: 0 0 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.ocd-countdown-ended {
	padding: 8px 0;
}

.ocd-countdown-ended p {
	margin: 0;
	font-size: 15px;
	color: #999;
}

.ocd-timer-display {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
}

.ocd-timer-icon {
	display: none;
}

.ocd-timer-block {
	text-align: center;
	min-width: 44px;
}

.ocd-timer-block .number {
	font-size: 38px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #532B83;
}

.ocd-timer-block.days {
	margin-right: 12px;
}

.ocd-timer-block.days .number {
	color: #333;
}

.ocd-timer-block .label {
	font-size: 11px;
	color: #999;
	margin-left: 2px;
	font-weight: 400;
}

.ocd-timer-sep {
	font-size: 30px;
	font-weight: 300;
	color: #532B83;
	margin: 0 6px;
	line-height: 1;
	position: relative;
	top: -2px;
}

/* === 신청/투표 인원 카운트 === */
.ocd-subscriber-count,
.opener-vote-count {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	font-weight: 400;
	line-height: 1.5;
}

.ocd-count-number {
	font-size: 22px;
	font-weight: 700;
	color: #532B83;
}

/* === Be The Opener: 프로그레스 바 === */
.opener-progress-wrapper {
	max-width: 100%;
	margin: 0 auto 24px;
	text-align: left;
}

.opener-progress-bar {
	width: 100%;
	height: 6px;
	background: #e0dbe8;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 8px;
}

.opener-progress-fill {
	height: 100%;
	background: #532B83;
	border-radius: 3px;
	transition: width 0.8s ease;
	min-width: 0;
}

.opener-progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #999;
	margin-bottom: 2px;
}

.opener-progress-pct {
	text-align: right;
	font-size: 14px;
	font-weight: 700;
	color: #532B83;
}

.opener-confirmed-msg {
	padding: 12px 20px;
	background: rgba(83, 43, 131, 0.08);
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
	color: #532B83;
	font-size: 14px;
}

/* === 토글 스위치 === */
.ocd-toggle-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.ocd-toggle-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.ocd-toggle {
	position: relative;
	width: 52px;
	height: 28px;
	cursor: pointer;
}

.ocd-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.ocd-toggle-track {
	position: absolute;
	inset: 0;
	background: #ccc;
	border-radius: 14px;
	transition: background 0.25s;
}

.ocd-toggle input:checked + .ocd-toggle-track {
	background: #532B83;
}

.ocd-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.ocd-toggle input:checked ~ .ocd-toggle-thumb {
	transform: translateX(24px);
}

.ocd-toggle.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* === 공유 섹션 === */
.ocd-share-section {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding: 20px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 0;
}

/* === 기대평 댓글 타이틀 === */
.ocd-comments-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px 0;
}

.ocd-comments-title .comments-total {
	color: #532B83;
	margin-left: 4px;
}

/* === 댓글 섹션 오버라이드 === */
.ocd-article .board-comments-section {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #333;
}

.ocd-article .board-comments-header {
	display: none;
}

/* === 본문 영역 === */
.ocd-content {
	margin-bottom: 32px;
}

.ocd-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* === 플로팅 배너 (Coming Up) === */
.floating-banner-wrapper {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
}

.floating-banner-timer {
	background: #1e1e2e;
	color: white;
	padding: 12px 24px;
	max-width: 860px;
	margin: 0 auto;
	border-radius: 12px 12px 0 0;
}

.banner-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
}

.timer-left {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ico-clock {
	display: flex;
	margin-right: 6px;
}

.ico-clock svg {
	width: 14px;
	opacity: 0.3;
}

.timer-blocks {
	display: flex;
	align-items: center;
}

.timer-block {
	text-align: center;
	margin: 0 2px;
}

.timer-block .number {
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #9b82d0;
}

.timer-block.days .number {
	color: rgba(255, 255, 255, 0.5);
}

.timer-block .label {
	font-size: 10px;
	margin-left: 1px;
	color: rgba(255, 255, 255, 0.3);
}

.timer-separator {
	font-size: 13px;
	font-weight: 300;
	color: #9b82d0;
	opacity: 0.5;
}

.timer-right {
	display: flex;
	align-items: center;
}

.notification-btn {
	background: #532B83;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	gap: 5px;
	transition: opacity 0.2s;
}

.notification-btn:hover {
	opacity: 0.85;
}

.notification-btn svg {
	width: 11px;
	opacity: 0.8;
}

/* === 반응형 === */
@media screen and (max-width: 768px) {
	.ocd-hero {
		padding: 24px 20px 22px;
		border-radius: 12px;
		max-width: 100%;
	}

	.ocd-timer-block .number {
		font-size: 28px;
	}

	.ocd-timer-sep {
		font-size: 22px;
		margin: 0 4px;
	}

	.ocd-timer-block {
		min-width: 28px;
	}

	.ocd-timer-block.days {
		margin-right: 8px;
	}

	.ocd-count-number {
		font-size: 22px;
	}

	.ocd-action-btn {
		max-width: 100%;
		font-size: 13px;
		padding: 11px 20px;
	}

	/* 플로팅 배너 모바일 */
	.floating-banner-timer {
		padding: 10px 16px;
	}

	.banner-container {
		gap: 12px;
		max-width: 100%;
	}

	.notification-btn {
		padding: 7px 14px;
		font-size: 11px;
	}

	.notification-btn svg {
		display: none;
	}

	.ico-clock svg {
		width: 12px;
	}

	.timer-block {
		margin: 0 2px;
	}

	.timer-block .number {
		font-size: 13px;
	}

	.timer-block .label {
		font-size: 9px;
	}

	.timer-separator {
		font-size: 11px;
	}
}
