/**
 * D.A.R.T.S. Watchtower — Archive Page Styles
 * File: assets/css/watchtower-archive.css
 *
 * BEM naming: .wt-[block]__[element]--[modifier]
 * Dark trading UI with orange (#ed4137) accents on #0A0A0A background.
 */

/* ================================================================== */
/*  CSS CUSTOM PROPERTIES                                              */
/* ================================================================== */

:root {
	--wt-bg:          #0A0A0A;
	--wt-surface:     #111111;
	--wt-surface-2:   #161616;
	--wt-border:      rgba(255, 255, 255, 0.08);
	--wt-border-2:    rgba(255, 255, 255, 0.04);
	--wt-accent:      #ed4137;
	--wt-accent-dark: #ef6402;
	--wt-text:        #FFFFFF;
	--wt-text-muted:  #888888;
	--wt-text-dim:    #555555;
	--wt-radius:      6px;
	--wt-max-width:   1400px;
}

/* ================================================================== */
/*  PAGE WRAPPER                                                       */
/* ================================================================== */

.wt-archive {
	background: var(--wt-bg);
	min-height: 100vh;
	color: var(--wt-text);
}

/* ================================================================== */
/*  HERO — FEATURED ANALYSIS                                          */
/* ================================================================== */

.wt-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	background-color: #0d0d0d;
	background-size: cover;
	background-position: center top;
	overflow: hidden;
}

.wt-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.92) 0%,
		rgba(0, 0, 0, 0.75) 50%,
		rgba(0, 0, 0, 0.2) 100%
	);
	pointer-events: none;
}

.wt-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--wt-max-width);
	margin: 0 auto;
	padding: 64px 28px;
}

.wt-hero__content {
	max-width: 600px;
}

.wt-hero__label {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wt-accent);
	margin-bottom: 5px;
}

.wt-hero__title {
	font-size: clamp(25px, 3vw, 45px);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wt-text);
	margin: 0 0 16px;
	letter-spacing: -0.5px;
}
.wt-hero__subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffffe6;
    margin: 0 0 24px;
    max-width: 375px;
}
/* System Lean badge */
.wt-hero__lean-badge {
    display: flex;
    border: 1px solid var(--wt-accent);
    border-radius: var(--wt-radius);
    box-shadow: -2px 2px 4px #ab0b02d3;
    padding: 10px 29px;
    margin-bottom: 24px;
    align-content: center;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 350px;
}
.wt-hero__lean-info{
	display: flex;
	flex-direction: column;
	/* gap: 9px; */
}
.wt-hero__lean-icon {
	color: var(--wt-accent);
	flex-shrink: 0;
}
.wt-hero__lean-label {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 1.5px;
	color: var(--wt-accent);
	text-transform: uppercase;
}
.wt-hero__lean-value {
	font-size: 18px;
	font-weight: 400;
	color: var(--wt-text);
}

.wt-hero__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	font-size: 16px;
	color: var(--wt-text-muted);
}

.wt-hero__read-time {
	display: flex;
	align-items: center;
	gap: 5px;
}

.wt-hero__cat {
	font-weight: 700;
	color: var(--wt-accent);
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 16px;
}

.wt-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wt-accent);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 20px;
	border-radius: var(--wt-radius);
	transition: background 0.2s ease;
}

.wt-hero__cta:hover {
	background: var(--wt-accent-dark);
	color: #fff;
	text-decoration: none;
}

/* ================================================================== */
/*  TWO-COLUMN LAYOUT: Main + Sidebar                                 */
/* ================================================================== */

.wt-archive__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	max-width: var(--wt-max-width);
	margin: 0 auto;
	padding: 32px 16px;
	align-items: start;
}

.wt-archive__sidebar {
	position: sticky;
	top: 80px; /* Below sticky header */
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ================================================================== */
/*  CATEGORY FILTER TABS                                               */
/* ================================================================== */

.wt-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	/* border-bottom: 1px solid var(--wt-border); */
	padding-bottom: 0;
	margin-bottom: 32px;
}

.wt-filter-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	border: 1px solid #3e3d3d;
	border-radius: var(--wt-radius);
}
.wt-filter-tabs__tab:hover {
	color: var(--wt-accent);
	border: 1px solid #ed4137;
	border-radius: var(--wt-radius);
}
.wt-filter-tabs__tab.is-active {
    color: var(--wt-accent);
    border: 1px solid #ed4137;
	border-radius: var(--wt-radius);
}

/* ================================================================== */
/*  GRID HEADER                                                        */
/* ================================================================== */
.wt-grid-border {
	border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 28px 22px;
}

.wt-grid-header {
	margin-bottom: 16px;
}

.wt-grid-header__title {
	font-size: 18px;
	letter-spacing: 2px;
	color: #fff;
	text-transform: uppercase;
	margin: 0;
	padding-bottom: 8px;
}

/* ================================================================== */
/*  ANALYSIS CARD GRID                                                 */
/* ================================================================== */

.wt-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

/* ================================================================== */
/*  ANALYSIS CARD                                                      */
/* ================================================================== */

.wt-card {
	background: var(--wt-surface);
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius);
	overflow: hidden;
	transition: border-color 0.2s, transform 0.2s;
}

.wt-card:hover {
	border-color: rgba(255, 107, 0, 0.3);
	transform: translateY(-2px);
}

.wt-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.wt-card__link:hover {
	text-decoration: none;
	color: inherit;
}

/* Thumbnail */
.wt-card__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #1a1a1a;
}

.wt-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wt-card:hover .wt-card__img {
	transform: scale(1.03);
}

.wt-card__img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Badge */
.wt-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	background: var(--wt-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 3px;
}

.wt-card__badge--video        { background: #6B4AFF; }
.wt-card__badge--interview    { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.2); }
.wt-card__badge--opinion      { background: #2a2a2a; border: 1px solid rgba(255,255,255,0.2); }
.wt-card__badge--market-brief { background: #0F4F2B; color: #4dff91; }

/* Video play overlay */
.wt-card__play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
}

.wt-card__play-btn {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	backdrop-filter: blur(4px);
	background: rgba(0, 0, 0, 0.4);
	transition: background 0.2s;
}

.wt-card:hover .wt-card__play-btn {
	background: var(--wt-accent);
	border-color: var(--wt-accent);
}

/* Card Body */
.wt-card__body {
	flex: 1;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wt-card__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wt-text);
	margin: 0;
}

/* System Lean row */
.wt-card__lean {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.wt-card__lean-label{
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--wt-accent);
    text-transform: uppercase;
}
.wt-card__lean-value {
	font-size: 17px;
	color: var(--wt-accent);
}

.wt-card__lean-arrow {
	font-size: 12px;
	color: var(--wt-accent);
}

/* .wt-card__lean-arrow--up     { color: #4dff91; } */
.wt-card__lean--up .wt-card__lean-value,
.wt-card__lean-arrow--up {
    color: #4dff91;
}
.wt-card__lean-arrow--neutral { color: #ff8900; }
.wt-card__lean-arrow--down   { color: var(--wt-accent); }

/* Meta row */
.wt-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--wt-border-2);
    font-size: 12px;
    color: var(--wt-text-muted);
}

.wt-card__read-time {
	display: flex;
	align-items: center;
	gap: 4px;
}

.wt-card__separator {
	color: var(--wt-border);
}

.wt-card__cat {
	/* font-weight: 700; */
	color: var(--wt-accent);
	letter-spacing: 1px;
	/* font-size: 11px; */
}

/* ================================================================== */
/*  LOAD MORE                                                          */
/* ================================================================== */

.wt-load-more-wrap {
	text-align: center;
	padding: 8px 0 16px;
}

.wt-load-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--wt-border);
	color: var(--wt-text-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 12px 28px;
	border-radius: var(--wt-radius);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
}

.wt-load-more:hover {
	border-color: var(--wt-accent);
	color: var(--wt-text);
}

.wt-load-more[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ================================================================== */
/*  NO RESULTS                                                         */
/* ================================================================== */

.wt-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--wt-text-muted);
	font-size: 15px;
}

/* ================================================================== */
/*  SIDEBAR WIDGETS — SHARED                                           */
/* ================================================================== */

.wt-sidebar-widget {
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius);
	overflow: hidden;
}

.wt-sidebar-widget__label {
	/* font-size: 10px; */
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--wt-accent);
	text-transform: uppercase;
	margin: 0 0 8px;
}

/* ================================================================== */
/*  SIDEBAR — STARTER KIT                                             */
/* ================================================================== */

.wt-sidebar-widget--starter-kit .wt-sidebar-widget__inner {
	padding: 24px;
}

.wt-sidebar-widget__title {
    font-size: 30px;
    font-weight: 400;
    color: var(--wt-text);
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    max-width: 200px;
}

.wt-sidebar-widget__sub {
	color: #fff;
	margin: 0 0 12px;
}

.wt-sidebar-widget__list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.wt-sidebar-widget__list li {
	position: relative;
	padding: 5px 0 5px 35px;
	color: var(--wt-text);
}

.wt-sidebar-widget__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 21px;
	height: 21px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23FF6B00'/%3E%3Cpath d='M7 12L10.5 15.5L18 8' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.wt-sidebar-widget__courses {
	/* font-size: 12px;
	color: var(--wt-text-muted); */
	margin: 0 0 4px;
}

.wt-sidebar-widget__bundle-label {
	font-size: 18px;
	font-weight: 600;
	color: var(--wt-accent);
	margin: 0 0 14px;
}

.wt-sidebar-widget__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	background: var(--wt-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--wt-radius);
	transition: background 0.2s;
}

.wt-sidebar-widget__cta:hover {
	background: var(--wt-accent-dark);
	color: #fff;
	text-decoration: none;
}

/* ================================================================== */
/*  SIDEBAR — POPULAR ANALYSIS                                         */
/* ================================================================== */

.wt-sidebar-widget--popular {
	padding: 20px;
}

.wt-sidebar-widget--popular .wt-sidebar-widget__label {
	margin-bottom: 16px;
}

.wt-popular-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	counter-reset: popular;
}

.wt-popular-list__item {
	border-bottom: 1px solid var(--wt-border-2);
	padding-bottom: 12px;
}

.wt-popular-list__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wt-popular-list__link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}

.wt-popular-list__link:hover {
	text-decoration: none;
}

.wt-popular-list__rank {
	font-size: 20px;
	font-weight: 700;
	color: var(--wt-text-dim);
	min-width: 20px;
	line-height: 1;
}

/* .wt-popular-list__thumb {
	width: 44px;
	height: 44px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background: #1a1a1a;
} */

.wt-popular-list__thumb img {
	width: 80%;
	/* object-fit: cover; */
}

.wt-popular-list__info {
	/* flex: 1; */
	min-width: 0;
}

.wt-popular-list__title {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--wt-text);
	line-height: 1.4;
	margin-bottom: 4px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.wt-popular-list__link:hover .wt-popular-list__title {
	color: var(--wt-accent);
}

.wt-popular-list__meta {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wt-popular-list__read {
	font-size: 10px;
	color: var(--wt-text-dim);
}

.wt-popular-list__cat {
	font-size: 10px;
	font-weight: 700;
	color: var(--wt-accent);
	letter-spacing: 0.5px;
}

/* ================================================================== */
/*  SIDEBAR — NEWSLETTER                                               */
/* ================================================================== */

.wt-sidebar-widget--newsletter {
	padding: 20px;
}

.wt-newsletter__header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.wt-newsletter__icon {
	color: var(--wt-accent);
	flex-shrink: 0;
	margin-top: 2px;
}

.wt-newsletter__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--wt-text);
	margin: 0 0 4px;
	text-transform: uppercase;
}

.wt-newsletter__sub {
	font-size: 12px;
	color: var(--wt-text-muted);
	margin: 0;
	line-height: 1.5;
}

.wt-newsletter__input-wrap {
	margin-bottom: 10px;
}

.wt-newsletter__input {
	width: 100%;
	background: var(--wt-bg);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--wt-radius);
	color: var(--wt-text);
	padding: 11px 14px;
	font-size: 13px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.wt-newsletter__input:focus {
	outline: none;
	border-color: var(--wt-accent);
}

.wt-newsletter__input::placeholder {
	color: var(--wt-text-dim);
}

.wt-newsletter__submit {
	width: 100%;
	padding: 12px;
	background: var(--wt-accent);
	border: none;
	border-radius: var(--wt-radius);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
	margin-bottom: 8px;
}

.wt-newsletter__submit:hover {
	background: var(--wt-accent-dark);
}

.wt-newsletter__disclaimer {
	font-size: 11px;
	color: var(--wt-text-dim);
	margin: 0;
	text-align: center;
}

.wt-newsletter__message {
	font-size: 13px;
	padding: 8px 12px;
	border-radius: 4px;
	margin-top: 8px;
}

.wt-newsletter__message--success {
	background: rgba(77, 255, 145, 0.1);
	border: 1px solid rgba(77, 255, 145, 0.3);
	color: #4dff91;
}

.wt-newsletter__message--error {
	background: rgba(255, 107, 0, 0.1);
	border: 1px solid rgba(255, 107, 0, 0.3);
	color: var(--wt-accent);
}

/* ================================================================== */
/*  SIDEBAR QUOTE                                                       */
/* ================================================================== */

.wt-sidebar-quote {
	padding: 24px;
	border: 1px solid var(--wt-border);
	border-radius: var(--wt-radius);
	border-left: 3px solid var(--wt-accent);
}

.wt-sidebar-quote__text {
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	color: var(--wt-text);
	margin: 0 0 8px;
}

.wt-sidebar-quote__text::before {
	content: '\201C';
	font-size: 24px;
	color: var(--wt-accent);
	line-height: 0;
	vertical-align: -6px;
	margin-right: 4px;
}

.wt-sidebar-quote__cite {
	font-size: 12px;
	color: var(--wt-text-dim);
	font-style: normal;
}

/* ================================================================== */
/*  RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 1200px) {
	.wt-archive__layout {
		grid-template-columns: 1fr 280px;
		padding: 24px 22px;
		gap: 24px;
	}

	.wt-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 980px){
	.wt-archive__layout {
    grid-template-columns: 1fr;
    padding: 24px 22px;
	}
}

@media (max-width: 700px) {
	.wt-archive__layout {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.wt-archive__sidebar {
		position: static;
	}

	.wt-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wt-hero__inner {
		padding: 40px 15px;
	}
}

@media (max-width: 600px) {
	.wt-grid-header__title {
		font-size: 14px;
	}
	.wt-grid-border {
    padding: 20px 12px;
	}
	.wt-hero__label {
	font-size: 16px;
	}
	.wt-hero__subtitle {
		font-size: 22px;
	}
	.wt-hero__lean-label {
		font-size: 19px;
	}
	.wt-hero__lean-value, .wt-card__lean-label {
		font-size: 14px;
	}
	.wt-card__title{
		font-size: 16px;
	}
	.wt-card__lean-value {
		font-size: 14px;
	}
	.wt-hero__cta {
		font-size: 15px;
		padding: 10px 14px;
	}
	.wt-hero {
		min-height: 400px;
	}

	.wt-hero__inner {
		padding: 32px 15px;
	}

	.wt-card-grid {
		grid-template-columns: 1fr;
	}

	.wt-filter-tabs {
		overflow-x: auto;
		flex-wrap: wrap;
		jiustify-content: flex-start;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: touch;
	}
	.wt-filter-tabs__tab {
    padding: 5px 8px;
    font-size: 9px;
	}

	.wt-filter-tabs::-webkit-scrollbar {
		display: none;
	}

	.wt-archive__layout {
		padding: 15px;
	}
	.wt-sidebar-widget__title {font-size: 18px;}
	.wt-sidebar-widget__cta {font-size: 15px; padding: 7px 4px;}
}
