/* ==========================================================================
   Reels Child — review components on top of the Astra dark setup
   ========================================================================== */

:root {
	--reels-accent: #806cef;
	--reels-accent-hover: #9484ee;
	--reels-pink: #ff7ad9;
	--reels-page: #1f1e25;
	--reels-card: #2b2933;
	--reels-card-soft: #25232d;
	--reels-line: rgba(255, 255, 255, 0.08);
	--reels-text: #e7f6ff;
	--reels-muted: #aaa6bb;
	--reels-good: #4ade80;
	--reels-bad: #f87171;
	--reels-warn: #fbbf24;
	--reels-radius: 14px;
}

/* Typography for CJK versions */
html:lang(ja) body {
	font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
	line-break: strict;
}

html:lang(ko) body {
	font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* Korean wraps between words, not inside them (Astra sets break-word higher up the tree). */
html:lang(ko) :is(p, li, td, h1, h2, h3, figcaption) {
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Header: badge + language switcher
   -------------------------------------------------------------------------- */

.site-header .ast-builder-html-element p {
	margin: 0;
}

.reels-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border: 1px solid rgba(128, 108, 239, 0.4);
	border-radius: 999px;
	background: rgba(128, 108, 239, 0.16);
	color: #ddd6ff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.reels-lang {
	position: relative;
	flex: none;
}

.reels-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.reels-lang__toggle::-webkit-details-marker {
	display: none;
}

.reels-lang__toggle::marker {
	content: "";
}

.reels-lang__toggle:hover,
.reels-lang[open] .reels-lang__toggle {
	border-color: var(--reels-accent);
	background: rgba(128, 108, 239, 0.16);
}

.reels-lang__toggle:focus-visible,
.reels-lang__link:focus-visible {
	outline: 2px solid var(--reels-accent);
	outline-offset: 2px;
}

.reels-lang__chevron {
	transition: transform 0.2s ease;
}

.reels-lang[open] .reels-lang__chevron {
	transform: rotate(180deg);
}

/* Language switcher + login button side by side */
.ast-header-html-1 .ast-builder-html-element {
	display: flex;
	align-items: center;
	gap: 10px;
}

.reels-login {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--reels-accent);
	border-radius: 999px;
	background: var(--reels-accent);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.reels-login:visited {
	color: #fff;
}

/* Full-width button between the hero and the facts table */
.entry-content .reels-cta {
	margin: 0 0 24px;
}

.entry-content a.reels-login.reels-login--wide {
	display: flex;
	width: 100%;
	min-width: 0;
	height: 54px;
	padding: 0 24px;
	border-radius: 14px;
	color: #fff;
	font-size: 17px;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(128, 108, 239, 0.28);
}

.entry-content a.reels-login.reels-login--wide:hover,
.entry-content a.reels-login.reels-login--wide:focus,
.entry-content a.reels-login.reels-login--wide:visited {
	color: #fff;
	text-decoration: none;
}

/* Desktop header: wide button */
@media (min-width: 922px) {
	.site-header .reels-login {
		min-width: 164px;
		padding: 0 28px;
	}
}

.reels-login:hover,
.reels-login:focus {
	border-color: var(--reels-accent-hover);
	background: var(--reels-accent-hover);
	color: #fff;
}

.reels-login:focus-visible {
	outline: 2px solid var(--reels-accent);
	outline-offset: 2px;
}

.reels-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	min-width: 230px;
	margin: 0;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: var(--reels-card);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	list-style: none;
}

.reels-lang__menu li {
	margin: 0;
}

.reels-lang__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--reels-text);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
}

.reels-lang__link:hover {
	background: rgba(128, 108, 239, 0.18);
	color: #fff;
}

.reels-lang__link.is-current {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-weight: 600;
}

.reels-lang__flag {
	flex: none;
	width: 16px;
	height: 11px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Content basics
   -------------------------------------------------------------------------- */

.entry-content h2.wp-block-heading {
	margin-top: 1.8em;
}

/* Astra pads top-level columns/groups (default block padding); the review components handle their own spacing. */
.entry-content > .wp-block-columns.reels-proscons,
.entry-content > .wp-block-columns.reels-steps,
.entry-content > .wp-block-columns.reels-split {
	padding: 0;
}

.entry-content .wp-block-image img {
	border-radius: var(--reels-radius);
}

.entry-content p.reels-small {
	margin-top: -8px;
	color: var(--reels-muted);
	font-size: 13px;
}

.entry-content .wp-block-image figcaption {
	margin-top: 8px;
	color: var(--reels-muted);
	font-size: 13px;
	text-align: center;
}

/* Hero */
.entry-content .reels-hero {
	position: relative;
	margin: 36px 0 24px;
	padding: 34px 38px;
	overflow: hidden;
	border: 1px solid rgba(128, 108, 239, 0.28);
	border-radius: 22px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(128, 108, 239, 0.38) 0%, rgba(128, 108, 239, 0) 55%),
		radial-gradient(80% 90% at 0% 100%, rgba(255, 122, 217, 0.12) 0%, rgba(255, 122, 217, 0) 60%),
		linear-gradient(160deg, #2e2b3a 0%, #211f29 100%);
}

.entry-content .reels-hero > .wp-block-columns {
	align-items: center;
	gap: 24px;
	margin: 0;
}

.entry-content .reels-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(30px, 4.4vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.entry-content .reels-hero .reels-lead {
	margin: 0 0 18px;
	color: #dcd8ea;
	font-size: 17px;
	line-height: 1.6;
}

/* "Updated: <date>" line is switched off; the paragraph is still in the page content. */
.entry-content .reels-updated {
	display: none;
}

.entry-content .reels-hero__media {
	flex: 0 0 34% !important;
}

.entry-content .reels-hero__img {
	margin: 0;
}

.entry-content .reels-hero__img img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 0 auto;
	border-radius: 0;
	-webkit-mask-image: radial-gradient(circle at 50% 46%, #000 54%, transparent 71%);
	mask-image: radial-gradient(circle at 50% 46%, #000 54%, transparent 71%);
}

ul.reels-tags,
.entry-content ul.reels-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content .reels-tags li {
	margin: 0;
	padding: 5px 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* Notes */
.entry-content .reels-note {
	margin: 0 0 28px;
	padding: 16px 20px;
	border: 1px solid rgba(128, 108, 239, 0.3);
	border-radius: 12px;
	background: rgba(128, 108, 239, 0.1);
}

.entry-content .reels-note p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}

.entry-content .reels-note--warn {
	border-color: rgba(251, 191, 36, 0.38);
	background: rgba(251, 191, 36, 0.08);
}

/* Quick facts */
.entry-content .wp-block-table.reels-facts {
	margin: 0 0 28px;
}

.entry-content .reels-facts table {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--reels-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--reels-radius);
	background: var(--reels-card);
	font-size: 15px;
}

.entry-content .reels-facts td {
	padding: 12px 18px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	line-height: 1.5;
	vertical-align: top;
}

.entry-content .reels-facts tr:last-child td {
	border-bottom: 0;
}

.entry-content .reels-facts td:first-child {
	width: 34%;
	color: var(--reels-muted);
	font-weight: 600;
}

.entry-content .reels-facts td:last-child {
	color: #fff;
}

/* Pros & cons */
.entry-content .reels-proscons {
	gap: 20px;
	margin: 0 0 28px;
}

.entry-content .reels-proscons > .wp-block-column {
	padding: 20px 22px;
	border: 1px solid var(--reels-line);
	border-radius: var(--reels-radius);
	background: var(--reels-card);
}

.entry-content .reels-proscons > .reels-pros {
	box-shadow: inset 0 3px 0 var(--reels-good);
}

.entry-content .reels-proscons > .reels-cons {
	box-shadow: inset 0 3px 0 var(--reels-bad);
}

.entry-content .reels-proscons h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.entry-content .reels-proscons ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry-content .reels-proscons li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 28px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.entry-content .reels-proscons li:last-child {
	margin-bottom: 0;
}

.entry-content .reels-proscons li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px;
}

.entry-content .reels-pros li::before {
	background-color: rgba(74, 222, 128, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%234ade80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.entry-content .reels-cons li::before {
	background-color: rgba(248, 113, 113, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5m0-5-5 5' fill='none' stroke='%23f87171' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Bonus steps */
.entry-content .reels-steps {
	gap: 16px;
	margin: 0 0 24px;
}

.entry-content .reels-steps > .wp-block-column {
	padding: 22px 16px;
	border: 1px solid rgba(128, 108, 239, 0.3);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(128, 108, 239, 0.2) 0%, rgba(128, 108, 239, 0.04) 100%);
	text-align: center;
}

.entry-content .reels-step__label {
	margin: 0 0 6px;
	color: var(--reels-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.entry-content .reels-step__pct {
	margin: 0 0 6px;
	background: linear-gradient(90deg, #c2b6ff 0%, var(--reels-pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.05;
}

.entry-content .reels-step__cap {
	margin: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

/* Checklist */
.entry-content ul.reels-check {
	margin: 0 0 24px;
	padding: 18px 22px;
	border: 1px solid var(--reels-line);
	border-radius: var(--reels-radius);
	background: var(--reels-card);
	list-style: none;
}

.entry-content .reels-check li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 30px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.entry-content .reels-check li:last-child {
	margin-bottom: 0;
}

.entry-content .reels-check li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: rgba(128, 108, 239, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23c2b6ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Feature cards */
.entry-content ul.reels-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.entry-content .reels-cards li {
	margin: 0;
	padding: 18px 18px 16px;
	border: 1px solid var(--reels-line);
	border-radius: var(--reels-radius);
	background: linear-gradient(160deg, #2d2a37 0%, var(--reels-card-soft) 100%);
	color: #d7d3e6;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.entry-content .reels-cards li:hover {
	border-color: rgba(128, 108, 239, 0.45);
	transform: translateY(-2px);
}

.entry-content .reels-cards li strong {
	display: block;
	margin-bottom: 6px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.entry-content .reels-cards li strong::before {
	content: "";
	display: block;
	width: 28px;
	height: 4px;
	margin-bottom: 12px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--reels-accent), var(--reels-pink));
}

/* Numbered steps (re-uses the bonus step cards) */
.entry-content .reels-steps--how .reels-step__pct {
	font-size: 34px;
}

.entry-content .reels-steps--how .reels-step__cap {
	font-weight: 500;
	line-height: 1.45;
}

/* Image + text split */
.entry-content .reels-split {
	gap: 28px;
	margin: 0 0 24px;
}

.entry-content .reels-split > .reels-split__media {
	flex: 0 0 260px !important;
}

.entry-content .reels-split .wp-block-image {
	margin: 0;
}

/* Chips */
ul.reels-chips,
.entry-content ul.reels-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.entry-content .reels-chips li {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: var(--reels-card);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.entry-content p.reels-chips-title {
	margin: 0 0 10px;
	color: var(--reels-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Verdict */
.entry-content .reels-verdict {
	margin: 0 0 28px;
	padding: 24px 26px;
	border: 1px solid rgba(128, 108, 239, 0.35);
	border-radius: 18px;
	background: linear-gradient(160deg, rgba(128, 108, 239, 0.16) 0%, rgba(128, 108, 239, 0.03) 100%);
}

.entry-content .reels-verdict p:last-child {
	margin-bottom: 0;
}

/* FAQ */
.entry-content .reels-faq__item {
	margin: 0 0 12px;
	padding: 18px 22px;
	border: 1px solid var(--reels-line);
	border-radius: 12px;
	background: var(--reels-card);
}

.entry-content .reels-faq__item h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.4;
}

.entry-content .reels-faq__item p {
	margin: 0;
}

/* Table of contents (Easy TOC) */
#ez-toc-container {
	padding: 14px 20px !important;
	border-radius: var(--reels-radius) !important;
}

#ez-toc-container a {
	text-decoration: none;
}

#ez-toc-container a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer .ast-builder-html-element p {
	margin: 0;
}

.reels-footer-note {
	box-sizing: border-box;
	max-width: 1010px;
	margin: 0 auto;
	padding: 0 20px;
	text-align: left;
}

.reels-footer-note__main {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.reels-footer-note__text {
	min-width: 0;
}

.reels-18 {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 2px solid var(--reels-bad);
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.reels-footer-note .reels-footer-note__text p {
	margin: 0 0 10px;
	color: var(--reels-muted);
	font-size: 13px;
	line-height: 1.6;
}

.reels-footer-note .reels-footer-note__text p.reels-footer-note__help {
	color: #d4cfe4;
}

.reels-footer-note .reels-footer-note__text p:last-child {
	margin-bottom: 0;
}

ul.reels-footer-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--reels-line);
	list-style: none;
	font-size: 13px;
}

.reels-footer-langs li {
	margin: 0;
}

.reels-footer-langs a {
	color: #d9d4ee;
	text-decoration: none;
}

.reels-footer-langs a:hover,
.reels-footer-langs a[aria-current] {
	color: #fff;
	text-decoration: underline;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	color: var(--reels-muted);
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.entry-content .reels-hero {
		margin-top: 20px;
		padding: 24px 20px;
		border-radius: 18px;
	}

	.entry-content .reels-hero__media {
		display: none;
	}

	.entry-content .reels-split > .reels-split__media {
		flex-basis: auto !important;
		max-width: 260px;
		margin: 0 auto;
	}

	/* Keep the three bonus steps in one compact row instead of stacking them. */
	.entry-content .wp-block-columns.reels-steps {
		flex-wrap: nowrap !important;
		gap: 8px;
	}

	.entry-content .wp-block-columns.reels-steps > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
		margin-bottom: 0;
		padding: 14px 6px;
		border-radius: 12px;
	}

	.entry-content .reels-step__label {
		font-size: 10px;
		letter-spacing: 0.04em;
	}

	.entry-content .reels-step__pct {
		font-size: 26px;
	}

	.entry-content .reels-step__cap {
		font-size: 12px;
	}

	/* "How to start" steps carry sentences, so they stack on phones. */
	.entry-content .wp-block-columns.reels-steps--how {
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-columns.reels-steps--how > .wp-block-column {
		flex-basis: 100% !important;
		padding: 14px 16px;
	}

	.entry-content .reels-steps--how .reels-step__cap {
		font-size: 14px;
	}
}

@media (max-width: 600px) {
	.entry-content .reels-facts td {
		display: block;
		width: auto !important;
		padding: 10px 16px;
	}

	.entry-content .reels-facts td:first-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	/* Footer: tighter section padding, 18+ mark stays beside the text. */
	.site-footer .site-primary-footer-wrap[data-section] {
		padding-top: 32px;
		padding-bottom: 24px;
	}

	.site-footer .site-below-footer-wrap[data-section] {
		padding-top: 16px;
		padding-bottom: 20px;
	}

	.reels-footer-note__main {
		gap: 14px;
	}

	.reels-18 {
		width: 38px;
		height: 38px;
		font-size: 12px;
	}

	.reels-footer-note .reels-footer-note__text p {
		margin-bottom: 12px;
		line-height: 1.55;
	}

	ul.reels-footer-langs {
		gap: 10px 16px;
		margin-top: 18px;
		padding-top: 18px;
	}

	/* Copyright aligned with the note above; right side kept free for the scroll-to-top button. */
	.site-footer .site-below-footer-wrap[data-section] .ast-builder-grid-row {
		padding-right: 20px;
		padding-left: 20px;
	}

	.site-footer .ast-footer-copyright {
		padding-right: 52px;
		text-align: left;
		text-wrap: balance;
	}

	.site-footer .ast-footer-copyright,
	.site-footer .ast-footer-copyright p {
		font-size: 12px;
	}

	.reels-badge {
		height: 22px;
		padding: 0 8px;
		font-size: 11px;
	}

	.reels-lang__toggle {
		height: 34px;
		padding: 0 10px;
	}

	.ast-header-html-1 .ast-builder-html-element {
		gap: 8px;
	}

	.reels-login {
		height: 34px;
		padding: 0 14px;
	}
}

/* Narrow phones: logo, button and switcher must fit in one row in every language. */
@media (max-width: 400px) {
	.ast-header-html-1 .ast-builder-html-element {
		gap: 6px;
	}

	.reels-login {
		padding: 0 12px;
	}

	.reels-lang__toggle {
		gap: 5px;
		padding: 0 9px;
	}

	.reels-lang__toggle .reels-lang__flag {
		display: none;
	}
}
