/**
 * D.A.R.T.S. Watchtower — Single Post & Blocks Styles
 * File: assets/css/watchtower-blocks.css
 *
 * Styles for single-watchtower.php and all Gutenberg block outputs.
 */

/* ================================================================== */
/*  COLOR UTILITIES (used in block save output)                       */
/* ================================================================== */

.wt-color--orange { color: #ed4137 !important; }
.wt-color--white  { color: #FFFFFF !important; }
.wt-color--red    { color: #FF4040 !important; }
.wt-color--green  { color: #4dff91 !important; }
.wt-color--blue   { color: #4da6ff !important; }
.wt-color--yellow { color: #FFD700 !important; }

/* ================================================================== */
/*  SINGLE POST PAGE                                                   */
/* ================================================================== */

.wt-single {
	background: #0A0A0A;
	min-height: 100vh;
	color: #fff;
}

/* ── HERO ── */
.wt-single__hero {
	position: relative;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	background-color: #0d0d0d;
	background-size: cover;
	background-position: center top;
	overflow: hidden;
}

.wt-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.95) 0%,
		rgba(0, 0, 0, 0.7) 60%,
		rgba(0, 0, 0, 0.2) 100%
	);
}

.wt-single__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 48px 25px 30px;
}

/* Breadcrumbs */
.wt-single__breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.wt-single__breadcrumb-link {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #ed4137;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.wt-single__breadcrumb-link:hover {
	color: #ed4137;
	text-decoration: none;
}

.wt-single__breadcrumb-sep {
	font-size: 12px;
	color: #444;
}

.wt-single__breadcrumb-date,
.wt-single__breadcrumb-read {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	color: #666;
	text-transform: uppercase;
}

/* Title */
.wt-single__title {
	font-size: clamp(28px, 3vw, 48px);
	line-height: 1.1;
	color: #fff;
	margin: 0 0 12px;
	letter-spacing: -0.5px;
	max-width: 530px;
}

.wt-single__subtitle {
	font-size: 19px;
	color: rgba(255,255,255,0.65);
	margin: 0 0 16px;
	line-height: 1.5;
	max-width: 530px;
}

/* System Lean */
.wt-single__lean {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 19px;
	color: #aaa;
}

.wt-single__lean-value {
	color: #ed4137;
	font-weight: 500;
}

.wt-single__lean-arrow {
	color: #ed4137;
	font-size: 16px;
}

/* ── TWO-COLUMN LAYOUT ── */
.wt-single__layout {
	display: grid;
	grid-template-columns: 1fr 620px;
	gap: 10px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 40px 25px;
	align-items: start;
	background-color: #0A0A0A;
}

/* Right: metrics sidebar */
.wt-single__sidebar {
	padding: 20px;
	border: 1px solid rgb(255 255 255 / 32%);
    border-radius: 8px;
	/* position: sticky;
	top: 80px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,107,0,0.3) transparent; */
}

.wt-single__sidebar::-webkit-scrollbar {
	width: 4px;
}

.wt-single__sidebar::-webkit-scrollbar-thumb {
	background: rgba(255,107,0,0.3);
	border-radius: 2px;
}

/* ================================================================== */
/*  SECTION WRAPPERS                                                   */
/* ================================================================== */

.wt-section {
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 6px;
	margin-bottom: 16px;
	/* background: #111; */
	overflow: hidden;
}

.wt-section__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	/* background: #0d0d0d;
	border-bottom: 1px solid rgba(255,255,255,0.06); */
}

.wt-section__icon {
	color: #ed4137;
	flex-shrink: 0;
}

.wt-section__num {
	font-size: 18px;
	font-weight: 600;
	color: #ed4137;
}

.wt-section__title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: #aaa;
	text-transform: uppercase;
}

.wt-section__body {
	padding: 20px 18px;
}

/* ================================================================== */
/*  BLOCK: MARKET OVERVIEW                                             */
/* ================================================================== */

.wt-section--market-overview .wt-market-overview__content p,
.wt-market-overview__content p {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
	margin: 0 0 14px;
}

.wt-market-overview__content p:last-child {
	margin-bottom: 0;
}

/* ACF textarea — treat each line break as paragraph spacing */
.wt-market-overview__content {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
}

/* ================================================================== */
/*  BLOCK: STRUCTURAL STATE                                            */
/* ================================================================== */

.wt-structural-state__metrics {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	margin-bottom: 18px;
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 4px;
	overflow: hidden;
}

.wt-structural-state__card {
	padding: 12px 10px;
	border-right: 1px solid rgba(255,255,255,0.07);
	background: #0d0d0d;
	text-align: center;
}

.wt-structural-state__card:last-child {
	border-right: none;
}

.wt-structural-state__card--wide {
	grid-column: span 1;
}

.wt-structural-state__card-label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #666;
	text-transform: uppercase;
	margin-bottom: 8px;
	line-height: 1.3;
}

.wt-structural-state__card-value {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #ed4137;
	line-height: 1.2;
}

.wt-structural-state__description {
	font-size: 14px;
	line-height: 1.75;
	color: #ccc;
}

.wt-structural-state__description p {
	font-size: 14px;
	line-height: 1.75;
	color: #ccc;
	margin: 0 0 12px;
}

.wt-structural-state__description p:last-child {
	margin-bottom: 0;
}

/* ================================================================== */
/*  BLOCK: INTERPRETATION                                              */
/* ================================================================== */

.wt-section--interpretation .wt-section__body--interp {
	padding-bottom: 0;
}

.wt-section--interpretation .wt-section__body--interp + .wt-section__body--interp {
	border-top: 1px solid rgba(255,255,255,0.05);
}

.wt-interpretation {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 0 16px;
	padding-bottom: 16px;
}

.wt-interpretation__header {
	grid-row: span 2;
	display: flex;
	align-items: flex-start;
	padding-top: 4px;
}

.wt-interpretation__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 900;
	color: #fff;
	flex-shrink: 0;
}

.wt-interpretation__content {
	grid-column: 2;
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
}

.wt-interpretation__content p {
	font-size: 13px;
	line-height: 1.75;
	color: #ccc;
	margin: 0 0 10px;
}

.wt-interpretation__content p:last-child {
	margin-bottom: 0;
}

.wt-interpretation__highlights {
	grid-column: 2;
	margin-top: 8px;
}

.wt-interpretation__highlight {
	font-size: 13px;
	font-style: italic;
	color: #ed4137;
	margin: 0 0 4px;
	line-height: 1.5;
}

/* ================================================================== */
/*  BLOCK: SYSTEM MESSAGE (Section 4 — What the System Is Saying)     */
/* ================================================================== */

.wt-section--system-message {
	border-left: 3px solid rgba(237,65,55,0.4);
}

.wt-section--system-message .wt-section__header::before {
	content: '\201C';
	font-size: 68px;
	color: #ed4137;
	line-height: 1;
	margin-right: 2px;
	font-family: Georgia, serif;
}
.wt-system-message__warning::after {
	content: '\201D';
	font-size: 32px;
	color: #ed4137;
	line-height: 1;
	margin-right: 2px;
	font-family: Georgia, serif;
}

.wt-system-message__content {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
}

.wt-system-message__content p {
	font-size: 14px;
	line-height: 1.75;
	color: #ccc;
	margin: 0 0 12px;
}

.wt-system-message__warning {
	/* font-size: 13px; */
	color: #ed4137;
	font-weight: 600;
}

.wt-system-message__behavior {
	font-size: 13px;
	color: #aaa;
	font-style: italic;
	margin: 0;
}

/* ================================================================== */
/*  BLOCK: WATCHTOWER RULE (Section 5)                                */
/* ================================================================== */

.wt-section--watchtower-rule {
	border-left: 3px solid #ed4137;
}

.wt-watchtower-rule__content {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
}

.wt-watchtower-rule__content p {
	font-size: 14px;
	line-height: 1.75;
	color: #ccc;
	margin: 0 0 12px;
}

.wt-watchtower-rule__content p:last-child {
	margin-bottom: 0;
}

/* ================================================================== */
/*  BLOCK: QUICK TAKE                                                  */
/* ================================================================== */

.wt-section--quick-take {
	background: #0d0d0d;
	border-color: rgba(255,107,0,0.25);
}

.wt-quick-take__content p {
	font-size: 14px;
	line-height: 1.8;
	color: #ccc;
	margin: 0 0 12px;
}

.wt-quick-take__content p:last-child {
	margin-bottom: 0;
}

/* ================================================================== */
/*  BLOCK: QUOTE                                                       */
/* ================================================================== */

.wt-section--quote {
	background: transparent;
	border: none;
}

.wt-quote {
	background: #0d0d0d;
	border: 1px solid rgba(255,255,255,0.07);
	border-radius: 6px;
	padding: 32px;
}

.wt-quote__text {
	font-size: clamp(16px, 2vw, 20px);
	font-weight: 600;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	margin: 0 0 32px;
	border-left: none;
	padding: 0;
}

.wt-quote__mark {
	font-size: 40px;
	color: #ed4137;
	line-height: 0;
	vertical-align: -14px;
	margin-right: 4px;
	font-style: normal;
}

.wt-quote__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.wt-quote__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.wt-quote__item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	/* border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.15);
	background: #111; */
}

/* Icon SVG backgrounds */
.wt-quote__item-icon--person::after {
	content: '';
	display: block;
	width: 38px;
	height: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.wt-quote__item-icon--scale::after {
	content: '';
	display: block;
	width: 38px;
	height: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cpath d='M3 9h18'/%3E%3Ccircle cx='6' cy='13' r='3'/%3E%3Ccircle cx='18' cy='13' r='3'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.wt-quote__item-icon--target::after {
	content: '';
	display: block;
	width: 38px;
	height: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.wt-quote__item-label {
	color: #e7e7e7;
	line-height: 1.4;
}

/* ================================================================== */
/*  SIDEBAR: METRICS TABLES                                            */
/* ================================================================== */

.wt-sidebar-metrics {
	margin-bottom: 20px;
}

.wt-metrics-table {
	/* background: #111; */
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 16px;
}

/* Title row — icon + text */
.wt-metrics-table__title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: #fff;
	text-transform: uppercase;
	margin: 0;
	padding: 10px 14px;
	background: #0d0d0d;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Icon inside title — dashicons or SVG */
.wt-metrics-table__title .wt-section__icon,
.wt-metrics-table__title .dashicons {
	color: #ed4137;
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.wt-metrics-table__title svg.wt-section__icon {
	width: 16px;
	height: 16px;
}

.wt-metrics-table__table {
	width: 100%;
	border-collapse: collapse;
}

/* Column headers (METRIC / AUD / CHF) */
.wt-metrics-table__th {
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #d2d2d2;
	text-transform: uppercase;
	text-align: left;
	background: #0a0a0a;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wt-metrics-table__row {
	border-bottom: 1px solid rgba(255,255,255,0.04);
}

.wt-metrics-table__row:last-child {
	border-bottom: none;
}

.wt-metrics-table__metric {
	padding: 7px 14px;
	font-size: 13px;
	color: #d2d2d2;
	font-weight: 400;
}

.wt-metrics-table__val {
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}

.wt-metrics-table--snapshot .wt-metrics-table__metric {
    color: #d2d2d2;
    font-size: 13px;
}

.wt-metrics-table--snapshot .wt-metrics-table__val {
	text-align: center;
}

/* Sidebar optional description note */
.wt-sidebar-metrics__desc {
	font-size: 12px;
	color: #666;
	padding: 8px 14px 10px;
	margin: 0;
	font-style: italic;
}

/* Dashicons as section icons (from ACF Icon Picker) */
.wt-section__icon.dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #ed4137;
	flex-shrink: 0;
	line-height: 1;
}

/* ================================================================== */
/*  POST NAVIGATION                                                    */
/* ================================================================== */

.wt-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	max-width: 1400px;
	margin: 0 auto;
	border-top: 1px solid rgba(255,255,255,0.07);
}

.wt-post-nav__item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 40px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s;
}

.wt-post-nav__item:hover {
	background: rgba(255,255,255,0.03);
	text-decoration: none;
	color: inherit;
}

.wt-post-nav__item--prev {
	border-right: 1px solid rgba(255,255,255,0.07);
}

.wt-post-nav__item--next {
	justify-content: flex-end;
	text-align: right;
}

.wt-post-nav__item--empty {
	min-height: 80px;
}

.wt-post-nav__arrow {
	color: #ed4137;
	flex-shrink: 0;
}

.wt-post-nav__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wt-post-nav__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #555;
	text-transform: uppercase;
}

.wt-post-nav__title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.wt-post-nav__lean {
	font-size: 11px;
	color: #ed4137;
}

/* ================================================================== */
/*  RESPONSIVE — SINGLE POST                                           */
/* ================================================================== */

@media (max-width: 1100px) {
	.wt-single__layout {
		grid-template-columns: 1fr;
		padding: 0 24px 32px;
	}

	.wt-single__content {
		border-bottom: 1px solid rgba(255,255,255,0.05);
		padding-bottom: 32px;
	}

	/* .wt-single__sidebar {
		padding-left: 0;
		padding-top: 24px;
		position: static;
		max-height: none;
		overflow-y: visible;
	} */

	.wt-structural-state__metrics {
		grid-template-columns: repeat(3, 1fr);
	}

	.wt-metrics-table__table {
		font-size: 11px;
	}
}

@media (max-width: 768px) {
	.wt-single__hero-inner {
		padding: 32px 20px;
	}
	.wt-single__layout {
    padding: 0 15px 16px;
	}
	.wt-structural-state__metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.wt-post-nav {
		grid-template-columns: 1fr;
	}

	.wt-post-nav__item--prev {
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.07);
	}

	.wt-post-nav__item {
		padding: 16px 20px;
	}

	.wt-post-nav__item--next {
		justify-content: flex-start;
		text-align: left;
	}

	.wt-quote__items {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.wt-section__body {
    padding: 10px 11px;
	}
	.wt-section__title, .wt-metrics-table__title {
    font-size: 14px;
	}
	.wt-single__sidebar {   padding: 7px;	}
	.wt-single__lean {
		align-items: flex-start;
		font-size: 18px;
		flex-direction: column;
		align-content: flex-start;
		gap: 4px;
	}

	.wt-structural-state__metrics {
		grid-template-columns: 1fr 1fr;
	}

	.wt-interpretation {
		grid-template-columns: 1fr;
		gap: 0 5px;
	}

	.wt-interpretation__badge {
		width: 36px;
		height: 36px;
		font-size: 11px;
	}

	.wt-quote__items {
		grid-template-columns: 1fr;
	}
}