/**
 * Cinesist Review Box Block CSS (Premium Design Model)
 * Styled for Technomancy Design System.
 */

 .cs-review-box-wrapper {
    margin: 2.5rem auto;
    background-color: var(--flex-gray-45);
    background-size: cover;
    background-position: right 25% center;
    background-repeat: no-repeat;
    border: 1px solid var(--cs-brand-70);
    border-left: 4px solid var(--cs-brand);
    border-top: 2px solid var(--cs-brand);
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 1080px;
}

.cs-review-box-wrapper:hover {
	box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7);
}

/* Top Meta Specification Bar */
.cs-review-top-bar {
    background: var(--flex-gray-40);
    border-bottom: 1px solid var(--cs-brand-60);
    border-top: 1px solid var(--cs-brand-60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-block: 1rem;
    padding: 12px 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 100%;
}

.cs-top-bar-row-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cs-top-bar-row-main .top-bar-title {
    font-size: var(--cs-font-size-h3);
    font-weight: 900;
    color: var(--heading-color);
    letter-spacing: 0.03em;
    margin-bottom: 0px;
}

.top-bar-year {
    font-size: var(--cs-font-size-h4);
    color: var(--secondary-text-color);
}

.cs-top-bar-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

.top-bar-sep {
	color: var(--cs-brand, #d102d1);
	opacity: 0.7;
	padding: 0 4px;
	font-weight: 400;
}

.top-bar-sep:nth-child(4) {
	display: none;
	visibility: hidden;
}

.top-bar-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.top-bar-label {
    color: var(--secondary-text-color);
    font-weight: 500;
}

/* Row 3 Taxonomies and Pills */
.cs-top-bar-row-taxonomies {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #cccccc;
	margin-top: 2px;
}

.cs-rating-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--cs-brand-70);
    background-color: var(--cs-brand-40) !important;
    padding: 3px 10px;
    border-radius: 0.25rem;
    color: var(
	--heading-color);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.cs-rating-pill:hover {
	border-color: var(--cs-brand);
	background: rgba(209, 2, 209, 0.15);
	box-shadow: 0 0 8px var(--cs-brand);
}

.cs-genre-pills {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.cs-genre-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 0.25rem;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    background: var(--cs-brand-400) !important;
    transition: all 0.2s ease;
}

.cs-genre-pill:hover {
	border-color: var(--cs-brand-700);
	color: #ffffff !important;
	background: rgba(209, 2, 209, 0.1);
	box-shadow: 0 0 6px var(--cs-brand-20);
}

/* Person profile links and dynamic title links */
.cs-review-title-link,
.cdb-person-link {
	color: var(--primary-text-color) !important;
	text-decoration: none;
	transition: all 0.2s ease;
}

.cs-review-title-link:hover,
.cdb-person-link:hover {
	--decoration-type: underline;
	text-decoration: var(--decoration-type);
	--decoration-color: var(--cs-brand);
	text-decoration-color: var(--decoration-color);
	--underline-thickness: 2px;
	text-decoration-thickness: var(--underline-thickness);
	--underline-offset: 3px;
	text-underline-offset: var(--underline-offset);
}

/* Main Container & Grid Layout */
.cs-review-container {
    padding: 0 30px;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.cs-review-grid-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Left Column: Poster & Gem Badge Overlay */
.cs-review-poster-col {
    flex: 0 0 275px;
    width: 275px;
    max-width: 275px;
    box-sizing: border-box;
}

.cs-review-poster-wrapper {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
	background: #000;
}

.cs-review-poster-img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}

.cs-review-poster-wrapper:hover .cs-review-poster-img {
	transform: scale(1.03);
}

/* Glowing Hexagon Gem Badge Overlay */
.cs-review-gem-overlay {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 80px;
	height: 90px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.cs-review-gem-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hexagon-bg {
    fill: var(--flex-gray-60);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 3.5px;
}

.hexagon-progress {
    fill: none;
    stroke: url(#cs-hexagon-gradient);
    stroke-width: 4px;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--cs-brand-200));
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


.cs-review-gem-text-container {
	position: relative;
	z-index: 12;
	text-align: center;
	color: #ffffff;
}

.cs-review-gem-val {
	font-size: var(--cs-font-size-h2);
	font-weight: 900;
	color: var(--primary-text-color);
	line-height: 1;
	display: block;
	text-shadow: 0 2px 5px var(--review-accent);
}

.cs-review-gem-lbl {
    font-size: var(--cs-font-size-xs);
    font-weight: 800;
    color: var(--primary-text-color);
    letter-spacing: 0.1em;
    opacity: 1;
    display: block;
    margin-top: -5px;
    text-shadow: 0 1px 3px var(--white-to-black-100-rgb);
}

/* 4. Right Column: Content Column */
.cs-review-content-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 20px;
	box-sizing: border-box;
}

.cs-review-content-col .emoji {
    font-size: var(--cs-font-size-h4);
    background-color: var(--flex-gray-40) !important;
    border-radius: var(
    --border-radius-1);
    border: 1px solid var(
    --cs-brand-70) !important;
    padding: 2px !important;
}

/* Section Blocks */
.cs-review-section-block {
	display: flex;
	flex-direction: column;
}

.cs-review-section-title {
    font-size: var(--cs-font-size-caption);
    font-weight: 800;
    letter-spacing: 0.08em;
    background-image: linear-gradient(to right, var(--heading-color), var(--cs-brand-500));
    color: var(--heading-color);
    background-clip: text;
    color: transparent;
    padding-bottom: 6px;
    margin: 0 !important;
    text-transform: uppercase;
}

/* Ratings and Verdict Metrics Grid */
.cs-review-metrics-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 28px;
	background: var(--flex-gray-60);
    border: 1px solid var(--cs-brand-70);
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
    gap: 10px;
}

.metric-bar-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.metric-bar-meta {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--primary-text-color);
	letter-spacing: 0.02em;
}

.metric-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

span.metric-name .emoji {
    font-size: var(--cs-font-size-h4);
    background-color: var(--flex-gray-40) !important;
    border-radius: var(
    --border-radius-1);
    border: 1px solid var(
    --cs-brand-70) !important;
    padding: 2px !important;
}

.metric-value-string {
	color: rgba(255, 255, 255, 0.55);
	font-size: 10px;
}

.metric-progress-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.metric-progress-track {
	flex: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
	overflow: hidden;
}

.metric-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--cs-brand-700), var(--cs-brand));
    border-radius: 3px;
    box-shadow: 0 0 6px var(--cs-brand-900);
    transition: width 0.8s ease-in-out;
}

.metric-progress-val {
	font-size: 11px;
	font-weight: 700;
	color: var(--secondary-text-color);
	min-width: 32px;
	text-align: right;
}

/* Verdict & Pitch Hub Panel */
.cs-review-verdict-summary {
	background: var(--flex-gray-60);
    border: 1px solid var(--cs-brand-70);
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cs-review-verdict-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}

.verdict-label {
    display: inline-flex;
    font-size: var(--cs-font-size-caption);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--heading-color);
    align-items: center;
}

.verdict-label::before {
    content: "";
    background-image: var(--cinesist-emblem-logo);
    /* background-color: var(--cs-title-40); */
    padding: 3px 10px;
    border-radius: 50%;
    border: 2px solid var(--cs-brand);
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background-size: cover;
    background-position: center;
    margin-right: 4px;
}

.verdict-val {
	display: inline-flex;
    font-size: 13px;
    background-color: var(--cs-title-40);
    border-radius: var(--border-radius-1);
    border: 1px solid var(--review-accent);
    padding: 3px 10px;
    font-weight: 900;
    color: var(--review-accent);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cs-review-should-watch p {
	font-size: var(--cs-font-size-body);
	font-weight: 600;
	line-height: 1.6;
	color: var(--primary-text-color);
	margin: 0 !important;
}

.pitch-label {
	font-weight: 800;
	color: var(--cs-brand, #d102d1);
	letter-spacing: 0.03em;
}

/* Good vs Bad — Collapsible Accordion Drawer */
.cs-review-moments-drawer {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--cs-brand-70);
	margin-top: 20px;
}

/* Toggle Button (summary) */
.cs-moments-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 9px 14px;
	cursor: pointer;
	list-style: none;
	background: var(--flex-gray-60);
	border: none;
	outline: none;
	transition: background 0.2s ease;
	user-select: none;
}

.cs-moments-toggle::-webkit-details-marker {
	display: none;
}

.cs-moments-toggle:hover {
	background: var(--flex-gray-70);
}

.cs-moments-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: var(--cs-brand-70);
	border: 1px solid var(--cs-brand);
	border-radius: 4px;
	color: var(--cs-brand);
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-moments-toggle-icon svg {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate chevron when open */
.cs-review-moments-drawer[open] .cs-moments-toggle-icon svg {
	transform: rotate(180deg);
}

.cs-review-moments-drawer[open] .cs-moments-toggle-icon {
	background: var(--cs-brand-90);
}

.cs-moments-toggle-label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--secondary-text-color);
	transition: color 0.2s ease;
}

.cs-moments-toggle:hover .cs-moments-toggle-label {
	color: var(--primary-text-color);
}

/* Panel Content (3-column: Gold | VS | Bad) */
.cs-moments-panel {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 0;
	padding: 16px;
	background: var(--flex-gray-55);
	border-top: 1px solid var(--cs-brand-60);
	animation: cs-moments-reveal 0.25s ease;
}

@keyframes cs-moments-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* VS Center Divider */
.moments-vs-divider {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 14px;
	align-self: stretch;
}

.moments-vs-line {
	flex: 1;
	width: 1px;
	background: linear-gradient(to bottom, transparent, var(--cs-brand-70), transparent);
}

.moments-vs-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	color: var(--cs-brand);
	opacity: 0.7;
}

.moments-col {
    background: var(--flex-gray-60);
    border: 1px solid var(--cs-brand-70);
    border-radius: 6px;
    padding: 16px;
    box-sizing: border-box;
}

.moments-title {
	font-size: 11.5px;
	font-weight: 800;
	margin: 0 0 10px 0 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.gold-col .moments-title {
    display: inline-flex;
    font-size: var(--cs-font-size-xs);
    color: var(--cinesist-gaming);
    align-items: center;
}


.gold-col .moments-list li::marker {
    content: "🪙 ";
    font-size: 0.65rem;
}

.bad-col .moments-title {
    display: inline-flex;
    font-size: var(--cs-font-size-xs);
    color: var(--cinesist-red);
    align-items: center;
}

.bad-col .moments-list li::marker {
    content: "🗡️ ";
    font-size: 0.75rem;
}

.moments-list {
	margin: 0;
	padding-left: 14px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--primary-text-color);
}

.moments-list li {
	margin-bottom: 6px;
}

.moments-list li:last-child {
	margin-bottom: 0;
}

.moments-empty {
	font-size: 11.5px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.4);
	margin: 0;
}

/* Call to Action button */
.cs-review-cta-row {
	margin-top: 10px;
}

.cs-review-cta-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--cs-brand) 0%, var(--cs-brand-600) 100%);
    border: 1px solid var(--cs-brand-300);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 5px;
    box-shadow: 0 4px 15px var(--cs-brand-70);
    transition: all 0.25s ease;
}

.cs-review-cta-btn:hover {
    background: linear-gradient(180deg, var(--cs-brand-600) 0%, var(--cs-brand-800) 100%);
    box-shadow: 0 6px 20px var(--cs-brand-70);
    transform: translateY(-1.5px);
}

/* Premium Placeholder State inside Block Editor */
.cs-review-box-placeholder {
	background: #0b0b0f;
	border: 2px dashed var(--cs-brand, #d102d1);
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	color: #ffffff;
}

.cs-placeholder-inner {
	max-width: 400px;
	margin: 0 auto;
}

.cs-placeholder-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.cs-review-box-placeholder h3 {
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 8px 0 !important;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.cs-review-box-placeholder p {
	font-size: 12.5px;
	line-height: 1.5;
	margin: 0;
	color: rgba(255, 255, 255, 0.5);
}

/* 5. Responsive Design Overrides */
@media (max-width: 820px) {
	.cs-review-grid-layout {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

	.cs-review-poster-col {
		flex: 0 0 auto;
		width: 100%;
		max-width: 280px;
	}

	.cs-review-metrics-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.cs-review-moments-drawer {
		border-radius: 4px;
	}

	.cs-moments-panel {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.moments-vs-divider {
		flex-direction: row;
		padding: 0;
		height: 24px;
	}

	.moments-vs-line {
		flex: 1;
		height: 1px;
		width: auto;
		background: linear-gradient(to right, transparent, var(--cs-brand-70), transparent);
	}
}
