/* ============================================================
   branwell-fortune-cookie — component styles only
   - Section header and footer owned by the theme partials
   - No font declarations (theme drives Poppins)
   - All rules scoped under #bw-fortune-cookie-panel
   ============================================================ */

:root {
	--fc-accent:      #4169A8;
	--fc-accent-dark: #305090;
	--fc-text:        #444;
	--fc-muted:       #666;
	--fc-light:       #888;
	--fc-border:      #e8edf8;
	--fc-bg-soft:     #f5f7fb;
}

/* ── Container ── */
#bw-fortune-cookie-panel .bw-fc-container {
	max-width: 1200px;
	width: calc(100% - 30px);
	margin: 0 auto;
	padding: 20px 15px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* ── Date Pill ── */
#bw-fortune-cookie-panel .bw-fc-date-pill {
	display: inline-flex;
	align-items: center;
	background: #f0f4fb;
	border: 1px solid #d0dcf0;
	border-radius: 20px;
	padding: 0.3rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--fc-accent);
	letter-spacing: 0.03em;
	margin-bottom: 2rem;
}

/* ── Stage ── */
#bw-fortune-cookie-panel .bw-fc-stage {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	padding: 2.5rem 1.5rem;
	background: #ffffff;
}

#bw-fortune-cookie-panel .bw-fc-prompt {
	font-size: 1rem;
	font-style: italic;
	color: var(--fc-light);
	text-align: center;
	line-height: 1.6;
	margin: 0;
}

/* ── Cookie screens ── */
#bw-fortune-cookie-panel .bw-fc-screen1,
#bw-fortune-cookie-panel .bw-fc-screen2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

#bw-fortune-cookie-panel .bw-fc-hide {
	display: none !important;
}

/* ── Cookie SVG ── */
#bw-fortune-cookie-panel .bw-fc-cookie-svg {
	cursor: pointer;
	transition: transform 0.2s ease;
	display: inline-block;
	line-height: 0;
}

#bw-fortune-cookie-panel .bw-fc-cookie-svg:hover {
	transform: scale(1.06);
}

#bw-fortune-cookie-panel .bw-fc-cookie-svg:active {
	transform: scale(0.97);
}

#bw-fortune-cookie-panel .bw-fc-cookie-svg svg {
	max-width: 220px;
	height: auto;
}

/* Screen2 cracked cookie — not clickable */
#bw-fortune-cookie-panel .bw-fc-screen2 .bw-fc-cookie-svg {
	cursor: default;
}

#bw-fortune-cookie-panel .bw-fc-screen2 .bw-fc-cookie-svg:hover {
	transform: none;
}

/* ── Fortune card ── */
#bw-fortune-cookie-panel .bw-fc-fortune {
	width: 100%;
	max-width: 600px;
	border-left: 4px solid var(--fc-accent);
	border-top: 1px solid var(--fc-border);
	border-right: 1px solid var(--fc-border);
	border-bottom: 1px solid var(--fc-border);
	border-radius: 0 12px 12px 0;
	background: #fff;
	padding: 1.5rem 1.75rem;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

#bw-fortune-cookie-panel .bw-fc-fortune-appear {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

#bw-fortune-cookie-panel .bw-fc-fortune-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--fc-accent);
	margin-bottom: 0.75rem;
}

#bw-fortune-cookie-panel .bw-fc-fortune-body {
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.6;
	color: var(--fc-text);
	margin: 0;
}

/* ── Reset button ── */
#bw-fortune-cookie-panel .bw-fc-reset-btn {
	height: 44px;
	padding: 0 1.5rem;
	background: var(--fc-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	letter-spacing: 0.03em;
	transition: background 0.15s ease;
}

#bw-fortune-cookie-panel .bw-fc-reset-btn:hover {
	background: var(--fc-accent-dark);
}

#bw-fortune-cookie-panel .bw-fc-reset-btn:focus,
#bw-fortune-cookie-panel .bw-fc-cookie-svg:focus {
	outline: 2px solid var(--fc-accent);
	outline-offset: 2px;
}

/* ── Lore grid ── */
#bw-fortune-cookie-panel .bw-fc-lore {
	max-width: 1200px;
	width: calc(100% - 30px);
	margin: 0 auto 2rem;
	padding: 0 15px;
	color: var(--fc-muted);
	font-size: 16px;
	line-height: 1.6;
}

#bw-fortune-cookie-panel .bw-fc-lore-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
	border-top: 1px solid var(--fc-border);
	padding-top: 2rem;
	margin-bottom: 2rem;
}

#bw-fortune-cookie-panel .bw-fc-lore-block strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--fc-text);
	margin-bottom: 0.4rem;
}

#bw-fortune-cookie-panel .bw-fc-lore-block p {
	font-size: 0.88rem;
	color: var(--fc-muted);
	line-height: 1.7;
	margin: 0;
}

/* ── Disclaimer ── */
#bw-fortune-cookie-panel .bw-fc-disclaimer {
	font-size: 0.8rem;
	color: #999;
	line-height: 1.6;
	margin: 0;
}

/* ── Animations ── */
@keyframes bw-fc-shake {
	0%, 100% { transform: rotate(0deg); }
	25%       { transform: rotate(-5deg); }
	75%       { transform: rotate(5deg); }
}

#bw-fortune-cookie-panel .bw-fc-shake {
	animation: bw-fc-shake 0.5s ease-in-out;
}

#bw-fortune-cookie-panel .bw-fc-cookie-touch {
	transform: scale(0.95);
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
	#bw-fortune-cookie-panel .bw-fc-container,
	#bw-fortune-cookie-panel .bw-fc-lore {
		width: calc(100% - 40px);
		padding: 0 20px;
	}

	#bw-fortune-cookie-panel .bw-fc-lore-grid {
		grid-template-columns: 1fr;
	}

	#bw-fortune-cookie-panel .bw-fc-stage {
		padding: 1.75rem 1rem;
	}

	#bw-fortune-cookie-panel .bw-fc-fortune-body {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	#bw-fortune-cookie-panel .bw-fc-cookie-svg svg {
		max-width: 180px;
	}

	#bw-fortune-cookie-panel .bw-fc-fortune-body {
		font-size: 1rem;
	}
}

@media print {
	#bw-fortune-cookie-panel .bw-fc-reset-btn {
		display: none;
	}
}
