/* ==========================================================================
   Editorial copy under the content (see seo-copy.php)
   ========================================================================== */

.seo-copy { margin: 40px 0 8px; width: 100%; }
.seo-copy[hidden] { display: none; }

.seo-copy__inner {
	position: relative;
	padding: clamp(26px, 3.4vw, 48px) clamp(20px, 4vw, 56px) clamp(24px, 3vw, 40px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(900px 260px at 0% 0%, var(--accent-soft), transparent 60%),
		linear-gradient(180deg, var(--surface), var(--bg-elev));
	box-shadow: var(--shadow);
	overflow: hidden;
}
.seo-copy__inner::before {            /* coral hairline, same motif as the header */
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
}

.seo-copy h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 14px; }
.seo-copy h3 {
	display: flex; align-items: center; gap: 10px;
	font-size: 1.08rem; margin: 30px 0 10px;
}
.seo-copy h3::before {
	content: ''; width: 4px; height: 1.05em; border-radius: 3px; background: var(--accent); flex: none;
}
.seo-copy p { margin: 0 0 14px; max-width: 78ch; color: #cbd6ec; line-height: 1.75; font-size: 0.97rem; }
.seo-copy .copy-lead { font-size: 1.1rem; color: var(--text); }
.seo-copy .copy-lead > p { font-size: inherit; color: inherit; }
.seo-copy a:not(.btn):hover { color: var(--accent); }

/* benefit tiles */
.copy-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.copy-tiles li {
	display: grid; gap: 4px; padding: 16px 18px;
	border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 27, 48, .7);
	transition: transform .2s, border-color .2s;
}
.copy-tiles li:hover { transform: translateY(-2px); border-color: var(--accent); }
.copy-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; }
.copy-tiles svg {
	box-sizing: border-box; width: 44px; height: 44px; padding: 10px; margin-bottom: 6px;
	color: var(--accent); background: var(--accent-soft); border-radius: 12px;
}
.copy-tiles strong { font-size: 0.98rem; }
.copy-tiles span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* category chips */
.copy-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.copy-chips a {
	display: inline-flex; align-items: center; gap: 2px; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
	font-weight: 500; font-size: 0.9rem; transition: border-color .15s, background .15s, transform .15s;
}
.copy-chips a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* call to action band */
.copy-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
	margin: 30px 0 6px; padding: 22px 26px;
	border: 1px solid rgba(255, 79, 94, .45); border-radius: var(--radius-lg);
	background: linear-gradient(120deg, rgba(255, 79, 94, .20), rgba(255, 79, 94, .04) 60%), var(--surface);
}
.copy-cta__body { flex: 1 1 320px; }
.copy-cta h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.copy-cta h3::before { display: none; }
.copy-cta p { margin: 0; color: var(--muted); }
.copy-cta__badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px;
	border-radius: 999px; background: var(--accent); color: var(--accent-ink);
	font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.copy-cta .btn { flex: none; box-shadow: 0 8px 22px rgba(255, 79, 94, .35); }

/* FAQ accordion */
.copy-faq { display: grid; gap: 12px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); align-items: start; }
.copy-faq details {
	border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 27, 48, .7);
	transition: border-color .2s;
}
.copy-faq details[open] { border-color: var(--accent); }
.copy-faq summary {
	list-style: none; cursor: pointer; padding: 18px 64px 18px 22px; position: relative; font-weight: 600;
	font-size: 1.02rem; line-height: 1.4; border-radius: var(--radius);
}
.copy-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-faq summary::-webkit-details-marker { display: none; }
.copy-faq summary::after {
	content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--accent-soft); font-size: 1.25rem; line-height: 1; color: var(--accent);
	transition: background .2s, color .2s;
}
.copy-faq details[open] summary::after { background: var(--accent); color: var(--accent-ink, #fff); }
.copy-faq details[open] summary::after { content: '\2212'; }
.copy-faq details p { margin: 0; padding: 0 64px 20px 22px; max-width: none; }

/* soft reveal (added by copy.js; without JS everything stays visible) */
.seo-copy .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.seo-copy .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.seo-copy .reveal { opacity: 1; transform: none; transition: none; }
	.copy-tiles li, .copy-chips a { transition: none; }
}

@media (max-width: 600px) {
	.seo-copy__inner { padding: 26px 18px 22px; }
	.copy-cta { padding: 18px; }
	.copy-cta .btn { width: 100%; }
}


/* ==========================================================================
   Full width layout of the editorial copy (built by copy.js)
   ========================================================================== */

/* title + lead side by side */
.copy-head { display: grid; gap: 4px 48px; margin-bottom: 8px; }
.copy-head h2 { margin: 0; }
.copy-head .copy-lead { max-width: none; }

/* "h3 + paragraphs" groups flow into a responsive grid */
.copy-grid {
	display: grid; gap: 8px 56px; align-items: start; margin-top: 28px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.copy-card { border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.copy-card h3 { margin: 0 0 14px; }
.copy-card p { max-width: none; }
.copy-card .copy-chips { margin-top: 4px; }

.seo-copy .copy-heading { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.2rem; }

@media (min-width: 900px) {
	.copy-head { grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr); align-items: start; }

	/* a lone group: heading on the left, text on the right */
	.copy-card:only-child {
		display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr);
		gap: 0 48px; align-items: start;
	}
	.copy-card:only-child > h3 { grid-column: 1; grid-row: 1 / span 8; }
	.copy-card:only-child > :not(h3) { grid-column: 2; max-width: 84ch; }
}

/* ==========================================================================
   Section titles: Top videos, Popular videos, Related videos, tag lists
   ========================================================================== */

.video-list-wrapper > .section-title {
	display: flex; align-items: center; gap: 14px;
	margin: 0 0 22px; padding: 0;
	font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em;
	color: var(--text, #fff);
}
.video-list-wrapper > .section-title::after {     /* accent line running to the edge */
	content: ''; flex: 1 1 32px; height: 2px; border-radius: 2px; opacity: .55;
	background: linear-gradient(90deg, var(--accent, #ff4f5e), transparent 85%);
}
.section-title__icon {
	flex: none; display: grid; place-items: center; width: 44px; height: 44px;
	border-radius: 13px; color: var(--accent-ink, #fff);
	background: linear-gradient(135deg, var(--accent, #ff4f5e), #ff7a5c);
	box-shadow: 0 8px 22px rgba(255, 79, 94, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.section-title__icon svg { width: 52%; height: 52%; display: block; }
.section-title__text { min-width: 0; overflow-wrap: anywhere; }
.section-title__text em { font-style: normal; color: var(--accent, #ff4f5e); }

/* compact version in the sidebar */
.sidebar .video-list-wrapper > .section-title { font-size: 1.08rem; gap: 10px; margin-bottom: 14px; }
.sidebar .section-title__icon { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 5px 14px rgba(255, 79, 94, .28); }

/* (the video page title lives in details.css) */

/* ==========================================================================
   Full width zone below content + sidebar (related videos, editorial copy)
   ========================================================================== */

.page-wide { padding-bottom: 8px; }
.wide-extra:empty { display: none; }
.wide-extra { margin-top: 36px; width: 100%; }
.wide-extra .video-list-wrapper { width: 100%; margin: 0; }

/* cards fill 100% of the width: as many columns as fit, each at least 220px wide
   (the grid itself is the .video-list that components/videoList.js renders) */
.wide-extra .relevant-videos-container { width: 100%; }
.wide-extra .video-list {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 22px 18px;
}
.wide-extra .pagination-container { margin-top: 28px; }

/* the editorial copy right after a card list needs some air */
.wide-extra:not(:empty) + .seo-copy { margin-top: 20px; }

@media (max-width: 600px) {
	.wide-extra { margin-top: 28px; }
	.wide-extra .video-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.video-list-wrapper > .section-title { gap: 10px; }
	.section-title__icon { width: 36px; height: 36px; border-radius: 11px; }
	.copy-faq details p { padding-right: 22px; }
}
