﻿/*
 * Main stylesheet entry point for Cream Magazine Child.
 * Split rules will move here from template-specific styles as the theme is decomposed.
 */

.cm-geo-suggest {
	position: relative;
	z-index: 8;
	padding: 12px 0;
	background: linear-gradient(90deg, rgba(247, 147, 26, 0.14), rgba(59, 130, 246, 0.08));
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.cm-geo-suggest__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 18px;
	border-radius: 18px;
	background: var(--cm-surface);
	border: 1px solid var(--cm-border);
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.cm-geo-suggest__eyebrow {
	margin: 0 0 4px;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f7931a;
}

.cm-geo-suggest__text,
.cm-geo-suggest__meta {
	margin: 0;
	color: var(--cm-text);
}

.cm-geo-suggest__meta {
	margin-top: 4px;
	font-size: 0.88rem;
	color: var(--cm-muted);
}

.cm-geo-suggest__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.cm-geo-suggest__button,
.cm-geo-suggest__dismiss {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--cm-border);
	background: transparent;
	color: var(--cm-text);
	text-decoration: none;
	font-weight: 700;
}

.cm-geo-suggest__button {
	background: #f7931a;
	border-color: #f7931a;
	color: #fff;
}

.cm-geo-suggest__dismiss {
	cursor: pointer;
}

.cm-shell-panel {
	background: #02040a;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.12);
}

:where(a, button, input, textarea, select, summary, [role="button"], [role="tab"]):focus-visible {
	outline: 3px solid #f7931a;
	outline-offset: 3px;
	box-shadow: 0 0 0 4px rgba(247, 147, 26, 0.18);
}

:where(a, button, input, textarea, select, summary, [role="button"], [role="tab"]):focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

.entry-content a,
.single-article__content a,
.single-box__text a,
.home-section__subtitle a,
.home-card__excerpt a,
.cm-geo-suggest__text a,
.cm-footer__subscribe-card a {
	color: #f7931a;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.18em;
}

.entry-content a:hover,
.single-article__content a:hover,
.single-box__text a:hover,
.home-section__subtitle a:hover,
.home-card__excerpt a:hover,
.sticky-sidebar {
	position: sticky;
	top: 96px;
	align-self: start;
	height: fit-content;
	background: var(--cm-page-bg);
}

.sticky-sidebar__stack {
	display: grid;
	gap: 14px;
}

.sticky-sidebar__inner {
	position: relative;
	max-height: none;
	overflow: visible;
	display: grid;
	gap: 18px;
	padding: 0;
	border-radius: 0;
	background: var(--cm-page-bg);
	border: 0;
	box-shadow: none;
}

.sticky-sidebar__header {
	display: grid;
	gap: 6px;
}

.sticky-sidebar__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f7931a;
}

.sticky-sidebar__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	color: var(--cm-text);
}

.sidebar-dashboard {
	display: grid;
	gap: 14px;
	padding: 0;
	border-radius: 0;
	background: var(--cm-page-bg);
	border: 0;
	box-shadow: none;
}

.sidebar-dashboard__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.sidebar-dashboard__eyebrow {
	margin: 0 0 6px;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fbbf24;
}

.sidebar-dashboard__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #fff;
}

.sidebar-dashboard__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.14);
	color: #bbf7d0;
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.sidebar-dashboard__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.sidebar-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.sidebar-dashboard__stat {
	display: grid;
	gap: 6px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
}

.sidebar-dashboard__stat-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #cbd5e1;
}

.sidebar-dashboard__stat-value {
	font-size: 0.88rem;
	font-weight: 700;
	color: #fff;
	word-break: break-word;
}

.sticky-sidebar .widget {
	margin: 0;
}

.sticky-sidebar .widget + .widget {
	padding-top: 14px;
	border-top: 0;
}

.sticky-sidebar .widget-title {
	margin-bottom: 10px;
	color: var(--cm-text);
}

.sidebar-slot {
	display: grid;
	gap: 12px;
}

.sidebar-slot__eyebrow {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f7931a;
}

.sidebar-slot__body {
	display: grid;
	gap: 12px;
}

.sidebar-trending {
	display: grid;
	gap: 10px;
}

.sidebar-trending__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 10px 0;
	color: var(--cm-text);
	text-decoration: none;
	border-bottom: 0;
}

.sidebar-trending__item:last-child {
	padding-bottom: 0;
}

.sidebar-trending__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(247, 147, 26, 0.12);
	color: #f7931a;
	font-size: 0.76rem;
	font-weight: 800;
}

.sidebar-trending__title {
	font-weight: 700;
	line-height: 1.45;
}

.sidebar-market-watch {
	display: grid;
	gap: 12px;
}

.sidebar-sponsored {
	display: grid;
	gap: 10px;
	padding: 0;
	border-radius: 0;
	background: transparent;
	border: 0;
}

.sidebar-sponsored__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--cm-text);
}

.sidebar-sponsored__text {
	margin: 0;
	color: var(--cm-muted);
	line-height: 1.65;
}

.sidebar-sponsored__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: #f7931a;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.sidebar-slot--trending,
.sidebar-slot--market,
.sidebar-slot--sponsored,
.sidebar-slot--widgets {
	padding: 0;
	border-radius: 0;
	background: var(--cm-page-bg);
	border: 0;
}

.sidebar-slot--market .sidebar-slot__body,
.sidebar-slot--trending .sidebar-slot__body,
.sidebar-slot--sponsored .sidebar-slot__body {
	padding-top: 4px;
}

.sidebar-slot--market .home-market-data__widget {
	border-radius: 0;
}

.sidebar-slot--ad .sidebar-slot__box {
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	border: 0;
	background: transparent;
	color: var(--cm-muted);
	text-align: center;
}

@media (max-width: 1024px) {
	.sticky-sidebar__inner {
		position: static;
	}

	.sidebar-dashboard__stats {
		grid-template-columns: 1fr;
	}
}
