/*
 * Crow Nation — Manager Tendency Profiles Stylesheet
 * Integrated with theme's core variables and tokens.
 */

:root {
	--mt-panel-bg: rgba(20, 21, 30, 0.65);
	--mt-card-bg: rgba(255, 255, 255, 0.03);
	--mt-border: rgba(255, 255, 255, 0.08);
	--mt-border-focus: rgba(255, 255, 255, 0.2);
	--mt-accent-blue: #59a7ff;
	--mt-accent-green: #20ceb8;
	--mt-accent-red: #fc2b6d;
}

.mt-wrapper {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background-color: var(--primary, #0c0d12);
	color: #fff;
	font-family: var(--primary-font, "Barlow"), sans-serif;
	overflow: hidden;
}

.mt-glow-1 {
	position: absolute;
	top: 5%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(89, 167, 255, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	filter: blur(80px);
	z-index: 0;
	pointer-events: none;
}

.mt-glow-2 {
	position: absolute;
	bottom: 5%;
	left: -10%;
	width: 650px;
	height: 650px;
	background: radial-gradient(circle, rgba(32, 206, 184, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	filter: blur(90px);
	z-index: 0;
	pointer-events: none;
}

.mt-container {
	position: relative;
	z-index: 2;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
}

/* ── Header ── */
.mt-header {
	margin-bottom: 30px;
}
.mt-title {
	font-family: var(--barlow, "Barlow"), sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}
.mt-subtitle {
	color: var(--light-grey, #a3acff);
	font-size: 1rem;
	margin-bottom: 24px;
}
.mt-setup-bar {
	display: flex;
	gap: 16px;
	align-items: center;
	background: rgba(20, 21, 30, 0.85);
	border: 1px solid var(--mt-border);
	padding: 16px 24px;
	border-radius: 16px;
	backdrop-filter: blur(15px);
}
.mt-control-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.mt-control-group label {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.mt-select {
	background: #14151e;
	border: 1px solid var(--mt-border);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	outline: none;
	cursor: pointer;
	min-width: 250px;
	transition: all 0.2s;
}
.mt-select:focus {
	border-color: var(--mt-border-focus);
	box-shadow: 0 0 0 2px rgba(89,167,255,0.15);
}

/* ── Layout Grid ── */
.mt-layout-grid {
	display: grid;
	grid-template-columns: 350px 1fr;
	gap: 24px;
	align-items: start;
}

/* 3-column Manager Profile: Profile | Roster | Transactions */
.mt-layout-grid.mt-layout-3col {
	grid-template-columns: minmax(240px, 280px) minmax(320px, 1.1fr) minmax(300px, 1fr);
	gap: 20px;
}

@media (max-width: 1200px) {
	.mt-layout-grid.mt-layout-3col {
		grid-template-columns: 1fr 1fr;
	}
	.mt-layout-grid.mt-layout-3col .mt-col-roster {
		grid-column: 1 / -1;
	}
}

@media (max-width: 991px) {
	.mt-layout-grid,
	.mt-layout-grid.mt-layout-3col {
		grid-template-columns: 1fr;
	}
	.mt-layout-grid.mt-layout-3col .mt-col-roster {
		grid-column: auto;
	}
}

/* ── Top 5 Assets list (ticker symbol + share price) ── */
.mt-top-assets-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mt-top-asset-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	background: rgba(0,0,0,0.18);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 8px;
	font-size: 0.78rem;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease, border-color 0.15s ease;
}
a.mt-top-asset-link:hover {
	background: rgba(89, 167, 255, 0.08);
	border-color: rgba(89, 167, 255, 0.25);
}
.mt-top-asset-sym {
	font-size: 0.72rem !important;
	font-weight: 800;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}
.mt-top-asset-val {
	font-family: ui-monospace, monospace;
	font-weight: 700;
	color: #00c076;
	font-size: 0.8rem;
	white-space: nowrap;
}
.mt-top-asset-empty {
	font-size: 0.75rem;
	color: #64748b;
	font-style: italic;
	padding: 8px 0;
}

/* Position color chips */
.mt-pos-QB, .mt-roster-pos.mt-pos-QB { background: rgba(252,43,109,.15); color: #fc2b6d; }
.mt-pos-RB, .mt-roster-pos.mt-pos-RB { background: rgba(32,206,184,.15); color: #20ceb8; }
.mt-pos-WR, .mt-roster-pos.mt-pos-WR { background: rgba(89,167,255,.15); color: #59a7ff; }
.mt-pos-TE, .mt-roster-pos.mt-pos-TE { background: rgba(253,151,45,.15); color: #fd972d; }
.mt-pos-DL, .mt-pos-DE, .mt-pos-DT,
.mt-roster-pos.mt-pos-DL, .mt-roster-pos.mt-pos-DE, .mt-roster-pos.mt-pos-DT { background: rgba(253,92,1,.15); color: #fd5c01; }
.mt-pos-LB, .mt-roster-pos.mt-pos-LB { background: rgba(163,172,255,.15); color: #a3acff; }
.mt-pos-DB, .mt-pos-CB, .mt-pos-S,
.mt-roster-pos.mt-pos-DB, .mt-roster-pos.mt-pos-CB, .mt-roster-pos.mt-pos-S { background: rgba(253,125,182,.15); color: #fd7db6; }
.mt-pos-PICK, .mt-roster-pos.mt-pos-PICK { background: rgba(0,192,118,.12); color: #00c076; }

/* ── Full Roster table ── */
.mt-roster-table-wrap {
	max-height: min(72vh, 900px);
	overflow: auto;
	margin: -4px -4px 0;
	padding-right: 4px;
}
.mt-roster-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
}
.mt-roster-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: rgba(20, 21, 30, 0.98);
	color: #64748b;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: left;
	padding: 8px 6px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	white-space: nowrap;
}
.mt-roster-table tbody tr {
	border-bottom: 1px solid rgba(255,255,255,0.04);
	transition: background 0.15s;
}
.mt-roster-table tbody tr:hover {
	background: rgba(255,255,255,0.03);
}
.mt-roster-table td {
	padding: 8px 6px;
	vertical-align: middle;
	color: #cbd5e1;
}
.mt-roster-pos {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 2px 6px;
	border-radius: 4px;
	min-width: 28px;
	text-align: center;
}
.mt-roster-player {
	min-width: 0;
}
.mt-roster-player a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.mt-roster-player a:hover {
	color: var(--mt-accent-blue);
}
.mt-roster-team {
	display: block;
	font-size: 0.65rem;
	color: #64748b;
	font-weight: 600;
	margin-top: 1px;
}
.mt-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}
.mt-val {
	color: #00c076;
}
.mt-ppg {
	color: #e2e8f0;
}

.mt-stats-grid-compact {
	grid-template-columns: 1fr 1fr;
	margin-bottom: 0;
}
.mt-stats-grid-compact .mt-stat-val {
	font-size: 1.25rem;
}

/* ── Glass Panel ── */
.mt-glass-panel {
	background: var(--mt-panel-bg);
	border: 1px solid var(--mt-border);
	border-radius: 16px;
	padding: 24px;
	backdrop-filter: blur(15px);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}
.mt-panel-title {
	font-family: var(--barlow, "Barlow"), sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	padding-bottom: 12px;
}

/* ── Manager Profile Card ── */
.mt-profile-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 16px 0;
}
.mt-avatar-wrapper {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3.5px solid var(--mt-accent-blue);
	box-shadow: 0 0 20px rgba(89, 167, 255, 0.2);
	overflow: hidden;
}
.mt-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mt-manager-name {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0;
	color: #fff;
}
.mt-team-name {
	font-size: 0.88rem;
	color: #64748b;
	margin: -6px 0 0 0;
}
.mt-archetype-badge {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 20px;
	letter-spacing: 0.06em;
	display: inline-block;
}

/* Archetype Colors */
.mt-arch-hoarder { background: rgba(89, 167, 255, 0.12); color: var(--mt-accent-blue); border: 1px solid rgba(89, 167, 255, 0.25); }
.mt-arch-buyer { background: rgba(252, 43, 109, 0.12); color: var(--mt-accent-red); border: 1px solid rgba(252, 43, 109, 0.25); }
.mt-arch-aggressor { background: rgba(32, 206, 184, 0.12); color: var(--mt-accent-green); border: 1px solid rgba(32, 206, 184, 0.25); }
.mt-arch-churner { background: rgba(253, 151, 45, 0.12); color: #fd972d; border: 1px solid rgba(253, 151, 45, 0.25); }
.mt-arch-gunslinger { background: rgba(189, 102, 255, 0.12); color: #bd66ff; border: 1px solid rgba(189, 102, 255, 0.25); }
.mt-arch-conservative { background: rgba(100, 116, 139, 0.12); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.25); }

/* ── Stats Grid ── */
.mt-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}
.mt-stat-card {
	background: var(--mt-card-bg);
	border: 1px solid var(--mt-border);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform 0.2s;
}
.mt-stat-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.12);
}
.mt-stat-val {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}
.mt-stat-lbl {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── Custom Position Bias Bar Chart ── */
.mt-bias-chart {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: rgba(0,0,0,0.2);
	border: 1px solid rgba(255,255,255,0.03);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
}
.mt-bias-row {
	display: grid;
	grid-template-columns: 48px 1fr 44px;
	align-items: center;
	gap: 10px;
}
.mt-bias-label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #cbd5e1;
	text-transform: uppercase;
}
.mt-bias-bar-wrap {
	position: relative;
	height: 10px;
	background: rgba(255,255,255,0.04);
	border-radius: 5px;
	overflow: hidden;
}
.mt-bias-bar {
	height: 100%;
	border-radius: 5px;
	transition: width 0.8s ease-out;
}
.mt-bias-val {
	font-size: 0.75rem;
	font-family: monospace;
	font-weight: 700;
	text-align: right;
}

/* ── Timeline Rows ── */
.mt-timeline-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 500px;
	overflow-y: auto;
	padding-right: 8px;
}
.mt-timeline-row {
	display: grid;
	grid-template-columns: 72px 72px 1fr auto;
	align-items: start;
	gap: 10px;
	background: var(--mt-card-bg);
	border: 1px solid var(--mt-border);
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.75rem;
	transition: border-color 0.2s;
}
.mt-col-tx .mt-timeline-list {
	max-height: 360px;
}
.mt-timeline-row:hover {
	border-color: rgba(255,255,255,0.15);
}
.mt-tl-week {
	font-weight: 700;
	color: var(--mt-accent-blue);
}
.mt-tl-type {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.68rem;
	letter-spacing: 0.05em;
}
.mt-tl-type.trade { color: #bd66ff; }
.mt-tl-type.waiver { color: var(--mt-accent-green); }
.mt-tl-type.free_agent { color: #fd972d; }
.mt-tl-desc {
	color: #cbd5e1;
	line-height: 1.4;
}
.mt-tl-meta {
	text-align: right;
	font-size: 0.72rem;
	color: #64748b;
}

/* Styling Scrollbar */
.mt-timeline-list::-webkit-scrollbar {
	width: 5px;
}
.mt-timeline-list::-webkit-scrollbar-track {
	background: transparent;
}
.mt-timeline-list::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.1);
	border-radius: 4px;
}
.mt-timeline-list::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.25);
}

/* ── Tabs Navigation ── */
.mt-tabs-nav {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding-bottom: 12px;
}
.mt-tab-link {
	padding: 10px 20px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: #94a3b8;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}
.mt-tab-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.12);
}
.mt-tab-link.active {
	background: rgba(89, 167, 255, 0.1);
	border-color: rgba(89, 167, 255, 0.3);
	color: var(--mt-accent-blue);
}
.mt-tab-pane {
	display: none;
}
.mt-tab-pane.active {
	display: block;
}

/* ── Compare Mode Components ── */
.mt-compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 768px) {
	.mt-compare-grid {
		grid-template-columns: 1fr;
	}
}
.mt-compare-col {
	background: var(--mt-panel-bg);
	border: 1px solid var(--mt-border);
	border-radius: 16px;
	padding: 24px;
	backdrop-filter: blur(15px);
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
	position: relative;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.mt-compare-col.mt-winner-glow {
	border-color: rgba(89, 167, 255, 0.3);
	box-shadow: 0 0 25px rgba(89, 167, 255, 0.08);
}
.mt-compare-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	padding-bottom: 16px;
}
.mt-compare-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 2.5px solid var(--mt-accent-blue);
}
.mt-compare-name {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}
.mt-compare-team {
	font-size: 0.8rem;
	color: #64748b;
}
.mt-compare-stats {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}
.mt-compare-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255,255,255,0.015);
	border: 1px solid rgba(255,255,255,0.03);
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 0.8rem;
}
.mt-compare-stat-row.better-val {
	background: rgba(32, 206, 184, 0.03);
	border-color: rgba(32, 206, 184, 0.12);
}
.mt-compare-stat-row.better-val strong {
	color: var(--mt-accent-green);
}
.mt-compare-stat-row label {
	color: #94a3b8;
	margin: 0;
}
.mt-compare-stat-row strong {
	font-size: 0.9rem;
}

/* ── Gauge Meter ── */
.mt-gauge-wrap {
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 24px;
	text-align: center;
}
.mt-gauge-score {
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--mt-accent-blue);
	line-height: 1.1;
}
.mt-gauge-lbl {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 4px;
}
