/**
 * SPLUGGAGE — Calm Corner page styles.
 *
 * Extracted from an inline <style> block in page-calm-corner.php so the
 * browser can cache it and the template can focus on markup/data.
 * Enqueued only on the Calm Corner page — see inc/calm-corner-page.php.
 *
 * @package Spluggage
 */

/* ===== HERO ===== */
.cc-hero-copy { max-width: 1400px; margin: 40px auto 0; padding: 0 16px; text-align: center; }
.cc-hero-copy h1 { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(38px, 5.5vw, 64px); letter-spacing: -0.02em; color: var(--navy); line-height: 1.05; }
.cc-hero-copy h1 em { font-style: normal; background: linear-gradient(135deg, var(--green), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-hero-copy p { font-family: 'Patrick Hand', sans-serif; font-size: 22px; color: var(--ink-soft); margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== INTRO — What is Calm Corner ===== */
.cc-intro { padding: 80px 32px 40px; background: var(--cream); }
.cc-intro-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cc-intro-inner p { font-family: 'Patrick Hand', sans-serif; font-size: 22px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; }
.cc-intro-inner p:last-child { color: var(--navy); font-weight: 700; font-family: 'Fredoka', sans-serif; font-size: 20px; margin-top: 22px; }

/* ===== CALM CREW ===== */
/*
 * scroll-margin-top on the anchor-scroll targets below: the site header
 * is `position: sticky; top: 0;` (system.css), so a plain <a href="#id">
 * lands the target flush against it with no offset, hiding its title
 * under the header. This applies to the "Meet [Name] →" crew card links
 * (which jump to that character's #song-N card in the Music section)
 * and to the Explore Calm Corner map pins (which jump to each section).
 */
.cc-crew-section,
.cc-feel-section,
.cc-music-section,
.cc-adv-section,
.cc-story-section,
.cc-song-card {
	scroll-margin-top: 100px;
}

.cc-crew-section { padding: 60px 32px 100px; background: var(--cream); }
.cc-crew-grid { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cc-crew-card {
	background: white; border-radius: 28px; overflow: hidden;
	box-shadow: var(--shadow-md); border: 4px solid white;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
	display: block; text-decoration: none; color: inherit; position: relative;
}
.cc-crew-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.cc-crew-portrait { position: relative; aspect-ratio: 1774 / 887; overflow: hidden; background: var(--navy); }
.cc-crew-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-crew-charm {
	position: absolute; top: 14px; right: 14px;
	width: 46px; height: 46px; border-radius: 50%;
	background: white; display: flex; align-items: center; justify-content: center;
	font-size: 22px; color: var(--cc-color, var(--navy));
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
	transition: filter 0.3s ease, transform 0.3s ease;
}
.cc-crew-card:hover .cc-crew-charm {
	filter: drop-shadow(0 0 10px var(--cc-color, var(--brand-gold)));
	animation: cc-charm-pulse 1.1s ease-in-out infinite;
}
@keyframes cc-charm-pulse {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50% { transform: scale(1.12) rotate(-6deg); }
}
.cc-crew-band { padding: 20px 22px 24px; text-align: center; }
.cc-crew-band .role { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cc-color, var(--navy)); }
.cc-crew-band h3 { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; color: var(--navy); margin: 6px 0 4px; }
.cc-crew-band .quote { font-family: 'Patrick Hand', sans-serif; font-size: 17px; color: var(--ink-mute); margin-bottom: 16px; }
.cc-crew-band .btn { font-size: 14px; padding: 12px 22px; }
@media (max-width: 920px) { .cc-crew-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* ===== MUSIC — the centerpiece =====
 * Styled as a boarding-pass manifest — a single-column list of ticket-stub
 * rows, echoing the perforated-tear motif already used on character pages
 * and the newsletter section, rather than a generic grid of cover-art
 * cards. Each stub's color is tied to the crew member the song belongs
 * to (Austin/Sunny/Harmony), or the Calm Corner green for ensemble tracks
 * — the color means something, it isn't just cycled for variety.
 */
.cc-music-section { padding: 100px 32px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-peach) 100%); }
.cc-ticket-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.cc-ticket {
	display: grid; grid-template-columns: 76px 1px 1fr;
	background: white; border-radius: 18px; overflow: hidden;
	box-shadow: var(--shadow-sm); transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cc-ticket:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cc-ticket__stub {
	background: var(--stub-color, var(--green));
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 12px 6px; color: white; font-family: 'Fredoka', sans-serif;
}
.cc-ticket__stub .no { font-size: 22px; font-weight: 700; line-height: 1; }
.cc-ticket__stub .of { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }

/* Perforated tear line — same repeating-gradient technique used on the
   character bio card divider, rotated vertical for a row layout. */
.cc-ticket__perf {
	position: relative;
	background: repeating-linear-gradient(
		to bottom,
		rgba(0,29,131,0.16) 0, rgba(0,29,131,0.16) 6px,
		transparent 6px, transparent 12px
	);
}
.cc-ticket__perf::before,
.cc-ticket__perf::after {
	content: ''; position: absolute; left: 50%; width: 14px; height: 14px;
	background: var(--cream-peach); border-radius: 50%; transform: translateX(-50%);
}
.cc-ticket__perf::before { top: -7px; }
.cc-ticket__perf::after  { bottom: -7px; }

.cc-ticket__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-ticket__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-ticket__title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); line-height: 1.2; }
.cc-ticket__char { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stub-color, var(--green)); }
.cc-ticket__desc { font-family: 'Patrick Hand', sans-serif; font-size: 15px; color: var(--ink-mute); line-height: 1.5; }

.cc-ticket__row { margin-top: 8px; display: flex; align-items: center; gap: 14px; }
.cc-ticket__play {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
	background: var(--stub-color, var(--green)); border: none; cursor: pointer;
	transition: transform 0.15s ease;
}
.cc-ticket__play:hover { transform: scale(1.08); }
.cc-ticket__play svg { width: 15px; height: 15px; pointer-events: none; }
.cc-ticket__track { position: relative; flex: 1; height: 3px; background: rgba(0,29,131,0.08); border-radius: 3px; min-width: 60px; }
.cc-ticket__fill { position: absolute; inset: 0; width: 0%; background: var(--stub-color, var(--green)); border-radius: 3px; transition: width 0.15s linear; }
.cc-ticket__soon { font-family: 'Patrick Hand', sans-serif; font-size: 13px; color: var(--ink-mute); font-style: italic; }
.cc-ticket__lyr {
	background: none; border: none; cursor: pointer; flex-shrink: 0;
	font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px;
	color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
	text-decoration-color: rgba(0,29,131,0.25); transition: text-decoration-color 0.15s ease;
}
.cc-ticket__lyr:hover { text-decoration-color: var(--navy); }

@media (max-width: 560px) {
	.cc-ticket { grid-template-columns: 56px 1px 1fr; }
	.cc-ticket__body { padding: 14px 16px; }
	.cc-ticket__stub .no { font-size: 18px; }
}

/* ===== LYRICS / INFO MODAL (shared look with Music page) ===== */
.cc-modal-wrap { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,29,131,.88); backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 24px; }
.cc-modal-wrap.on { display: flex; }
.cc-modal { background: #fff; border-radius: 24px; max-width: 540px; width: 100%; max-height: 84vh; overflow-y: auto; padding: 36px; position: relative; box-shadow: 0 40px 100px rgba(0,0,0,.3); animation: cc-pop .22s cubic-bezier(.22,1,.36,1); }
@keyframes cc-pop { from { transform: scale(.93) translateY(12px); opacity: 0; } }
.cc-modal__close { position: absolute; top: 14px; right: 14px; background: rgba(0,29,131,.07); border: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .18s; }
.cc-modal__close:hover { background: rgba(0,29,131,.15); }
.cc-modal__cat { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }
.cc-modal__title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.75rem; color: var(--navy); margin-bottom: 12px; line-height: 1.1; }
.cc-modal__body { font-family: 'Patrick Hand', sans-serif; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.cc-modal__soon { margin-top: 18px; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: .9rem; color: var(--ink-mute); }

/* ===== LITTLE CALM ADVENTURES ===== */
.cc-adv-section { padding: 100px 32px; background: var(--cream); }
.cc-adv-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cc-adv-tile { background: white; border-radius: 20px; padding: 26px 14px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s ease; }
.cc-adv-tile:hover { transform: translateY(-6px); }
.cc-adv-tile .emoji { font-size: 38px; margin-bottom: 10px; }
.cc-adv-tile h4 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; line-height: 1.25; }
.cc-adv-tile .badge { display: inline-block; font-family: 'Patrick Hand', sans-serif; font-size: 12px; color: var(--wood-dark); background: var(--parchment); padding: 3px 10px; border-radius: 999px; }
.cc-adv-play {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%; margin: 0 auto;
	background: var(--orange); border: none; cursor: pointer;
	box-shadow: 0 3px 0 #C25F00; transition: transform 0.15s ease;
}
.cc-adv-play:hover { transform: translateY(-2px); }
.cc-adv-play svg { width: 13px; height: 13px; pointer-events: none; }
.cc-adv-track { margin-top: 10px; position: relative; height: 3px; border-radius: 3px; background: rgba(0,29,131,0.08); }
.cc-adv-fill { position: absolute; inset: 0; width: 0%; background: var(--orange); border-radius: 3px; transition: width 0.15s linear; }
@media (max-width: 920px) { .cc-adv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cc-adv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== STORY BENCH ===== */
.cc-story-section { padding: 100px 32px; background: linear-gradient(180deg, var(--cream-peach) 0%, var(--cream) 100%); }
.cc-story-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cc-story-inner .emoji { font-size: 48px; margin-bottom: 12px; }
.cc-story-inner p { font-family: 'Patrick Hand', sans-serif; font-size: 20px; color: var(--ink-soft); line-height: 1.6; max-width: 640px; margin: 12px auto 0; }

.cc-story-grid { max-width: 900px; margin: 36px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.cc-story-card { background: white; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cc-story-card:not(.is-soon):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cc-story-card__cat { display: inline-flex; align-items: center; gap: 6px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark, var(--navy)); }
.cc-story-card__title { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 17px; color: var(--navy); margin-top: 6px; line-height: 1.3; }
.cc-story-card__row { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.cc-story-play {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
	background: var(--teal); border: none; cursor: pointer;
	box-shadow: 0 3px 0 rgba(0,29,131,0.2); transition: transform 0.15s ease;
}
.cc-story-play:hover { transform: translateY(-2px); }
.cc-story-play svg { width: 14px; height: 14px; pointer-events: none; }
.cc-story-track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(0,29,131,0.08); }
.cc-story-fill { position: absolute; inset: 0; width: 0%; background: var(--teal); border-radius: 3px; transition: width 0.15s linear; }
.cc-story-card.is-soon { background: var(--parchment); box-shadow: none; }
.cc-story-card.is-soon .cc-story-card__title { color: var(--wood-dark); }
.cc-story-soon-badge { display: inline-block; margin-top: 14px; font-family: 'Patrick Hand', sans-serif; font-size: 13px; color: var(--ink-mute); font-style: italic; }
@media (max-width: 640px) { .cc-story-grid { grid-template-columns: 1fr; } }

/* ===== BIG FEELINGS ===== */
.cc-feel-section { padding: 100px 32px; background: var(--navy); position: relative; overflow: hidden; }
.cc-feel-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(84,150,44,0.14) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(255,179,0,0.08) 0%, transparent 50%); }
.cc-feel-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.cc-feel-section .section-title, .cc-feel-section .section-sub { color: white; }
.cc-feel-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }
.cc-feel-tile {
	background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12);
	border-radius: 20px; padding: 26px 12px 20px; text-align: center; cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease; font: inherit; color: white;
}
.cc-feel-tile:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.cc-feel-tile .emoji { font-size: 40px; margin-bottom: 10px; display: block; }
.cc-feel-tile .label { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; }
@media (max-width: 920px) { .cc-feel-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cc-feel-grid { grid-template-columns: repeat(2, 1fr); } }
.cc-feel-modal .cc-modal__body p { margin-bottom: 10px; }
.cc-feel-modal .cc-modal__body strong { color: var(--green); }

/* ===== EXPLORE CALM CORNER (map) ===== */
.cc-map-section { padding: 100px 32px; background: var(--cream); }
.cc-map-inner { max-width: 1200px; margin: 0 auto; }
.cc-map-image { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid white; }
.cc-map-image img { width: 100%; display: block; }
.cc-map-image .badge { position: absolute; top: 18px; left: 18px; background: white; color: var(--navy); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.cc-map-pins { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cc-map-pin { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--navy); text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.cc-map-pin:hover { transform: translateY(-3px); }

/* ===== FOR PARENTS (short) ===== */
.cc-parents-section { padding: 100px 32px; background: var(--cream); }
.cc-parents-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cc-parents-tile { background: white; border-radius: 20px; padding: 26px 16px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s ease; }
.cc-parents-tile:hover { transform: translateY(-6px); }
.cc-parents-tile .vi { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--green); color: white; display: flex; align-items: center; justify-content: center; }
.cc-parents-tile h4 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14px; color: var(--navy); line-height: 1.3; }
.cc-parents-cta { text-align: center; margin-top: 32px; }
@media (max-width: 920px) { .cc-parents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .cc-parents-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== FEATURED TODAY ===== */
.cc-today-section { padding: 100px 32px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-peach) 100%); }
.cc-today-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cc-today-card { background: white; border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.cc-today-card .kicker { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; display: block; }
.cc-today-card .big-emoji { font-size: 34px; margin-bottom: 8px; }
.cc-today-card h4 { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); }
@media (max-width: 920px) { .cc-today-grid { grid-template-columns: 1fr; } }

/* ===== TODAY'S KIND THOUGHT ===== */
.cc-thought-section { padding: 80px 32px; background: var(--navy); text-align: center; }
.cc-thought-section .kicker { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--board-amber); }
.cc-thought-section p { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(30px, 4.5vw, 46px); color: white; max-width: 800px; margin: 18px auto 0; line-height: 1.3; }
