/* ---------- Base styles ---------- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
	background-color: #ffffff;
	color: #111111;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

/* ---------- ESPN-style header ---------- */
.espn-header {
	background: #e41e24;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.espn-header {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.espn-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hamburger {
	width: 20px;
	height: 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 0;
}

.hamburger span {
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
}

/* ESPN Header Logo */
.espn-logo {
    height: 26px;
    width: auto;
    margin-left: 12px;
    filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.35));
    display: inline-block;
    vertical-align: middle;
}

.espn-logo {
    height: 26px;     /* adjust size here */
    width: auto;
    filter: brightness(0) invert(1); /* turns the red to pure white */
    object-fit: contain;
}

/* Ensure left-side stays aligned */
.espn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}


.espn-right {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* Fix for profile avatar size */
.profile-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
}

/* Keep name aligned properly */
.profile-box {
	display: flex;
	align-items: center;
	gap: 6px;
}



/* ---------- Top nav (site pages) ---------- */
.top-nav {
	background: #111;
	color: #fff;
	border-bottom: 1px solid #333;
}


.top-nav a {
	padding: 8px 10px;
	font-size: 0.8rem;
}

.top-nav-inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	overflow-x: auto;
}

.top-nav a {
	padding: 10px 14px;
	font-size: 0.8rem;
	white-space: nowrap;
	border-right: 1px solid #333;
}

.top-nav a.active {
	background: #e41e24;
}

/* ---------- Sports nav row (fake ESPN sports bar) ---------- */
.sports-nav-wrapper {
	background: #ffffff;
	border-bottom: 1px solid #ddd;
	overflow-x: auto;
	white-space: nowrap;
}

.sports-nav {
	display: inline-flex;
	align-items: center;
	padding: 8px 8px;
	gap: 12px;
}

.sport-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
	cursor: pointer;
	font-size: 0.7rem;
	color: #333;
}

.sport-icon {
	width: 26px;
	height: 26px;
	font-size: 1rem;
	/* Change from 0.7rem */
	line-height: 26px;
}

.sport-tab.active .sport-icon {
	border-color: #e41e24;
}

.sport-tab.active span {
	color: #e41e24;
	font-weight: 600;
}

.sports-nav-spacer {
	border-left: 1px solid #ddd;
	margin-left: 4px;
	padding-left: 12px;
	font-size: 0.8rem;
	cursor: pointer;
}


.sports-nav {
	justify-content: center;
	gap: 24px;
}

.sport-tab {
	flex-direction: column;
	align-items: center;
}


.sport-tab span {
	margin-top: 2px;
}


/* ---------- Article layout ---------- */




.article-content {
	padding: 12px 14px 24px;
}

.article-kicker {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: #666;
	margin: 8px 0 4px;
	letter-spacing: 0.08em;
}

.article-title {
	font-size: 1.4rem;
	line-height: 1.3;
	font-weight: 800;
	margin-bottom: 8px;
}

.article-subtitle {
	font-size: 0.9rem;
	color: #444;
	margin-bottom: 10px;
}

.article-meta {
	font-size: 0.75rem;
	color: #666;
	margin-bottom: 16px;
}

.article-meta a {
	color: #1a73e8;
	font-weight: 500;
}

.article-body p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 12px;
}

.article-body h2 {
	font-size: 1.05rem;
	margin: 16px 0 6px;
}

.article-body ul {
	margin-left: 18px;
	margin-bottom: 10px;
}

.article-body li {
	font-size: 0.9rem;
	margin-bottom: 4px;
}

/* ---------- Home cards ---------- */
.home-hero {
	padding: 14px;
}



.home-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 6px;
}

.home-sub {
	font-size: 0.95rem;
	color: #444;
	margin-bottom: 14px;
}

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 0 14px 24px;
}

.home-card {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px;
}

.home-card h3 {
	font-size: 1rem;
	margin-bottom: 4px;
}

.home-card p {
	font-size: 0.85rem;
	color: #444;
}

/* ---------- Desktop tweaks ---------- */
@media (min-width: 768px) {
	.article-title {
		font-size: 1.8rem;
	}

	.article-content {
		padding: 16px 20px 32px;
	}

	.sports-nav {
		padding: 10px 24px;
	}

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.econ-callout {
	background: #fafafa;
	border-left: 4px solid #e41e24;
	padding: 10px 12px;
	margin-top: 16px;
	font-size: 0.85rem;
}


/* Fix sports nav layout */
.sports-nav-wrapper {
	width: 100%;
	overflow-x: auto;
	white-space: nowrap;
}

.sports-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	/* can change to center if preferred */
	gap: 22px;
	padding: 8px 12px;
}

.sport-tab {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.sport-icon {
	font-size: 1.3rem;
	/* adjust icon size */
	line-height: 1;
}

.sport-tab span {
	font-size: 0.68rem;
	margin-top: 2px;
	font-weight: 600;
}

.sport-tab.active span {
	color: #e41e24;
}

/******************************************
 🔥 Active Sport Emoji Animation
******************************************/
.sport-tab.active .sport-icon {
    animation: bounce 0.8s infinite alternate ease-in-out;
    transform-origin: bottom;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}


/******************************************
 🟥 Team/Themed Colors per Page
******************************************/
body.unit1 {
    --accent: #bc0024; /* Canada red */
}

body.unit2 {
    --accent: #cf112d; /* Blackhawks red */
}

body.unit3 {
    --accent: #17408B; /* NBA blue */
}

body.unit4 {
    --accent: #101820; /* Dark finance vibes */
}

body.unit5 {
    --accent: #2e7d32; /* macro / economy green */
}


.top-nav a.active,
.sport-tab.active span {
    color: var(--accent) !important;
}


/******************************************
 📱 Shrink Header on Scroll
******************************************/
.espn-header {
    transition: all 0.25s ease;
}

.espn-header.shrink {
    padding: 6px 15px;
    background: #b30000;
    transform: scale(0.95);
}


/******************************************
 📰 Slide-out Menu (Hamburger)
******************************************/
.side-menu {
    position: fixed;
    top: 0;
    left: -240px;
    width: 240px;
    height: 100%;
    background: #111;
    color: white;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 2000;
}

.side-menu.open {
    left: 0;
}

.side-menu a {
    display: block;
    padding: 12px 0;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid #333;
}



/******** Profile Icon UI ********/
.profile-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-icon {
    font-size: 1rem;
    margin-right: 2px;
}

.profile-name {
    color: #ffffff;
}

/* ===== Comments Section Styling ===== */
.comments-section {
	margin-top: 25px;
	border-top: 2px solid #eee;
	padding-top: 10px;
}

.comments-toggle {
	background: var(--accent, #e41e24);
	color: #fff;
	border: none;
	padding: 10px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
}

.comments-container {
	display: none;
	margin-top: 12px;
}

.comments-container.open {
	display: block;
}

.comment {
	background: #f6f6f6;
	padding: 8px 10px;
	margin: 6px 0;
	border-radius: 6px;
	font-size: 0.85rem;
}


.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  color: #777;
  font-size: 0.85rem;
}



/* ===== Homepage Card Hover Animations ===== */
.home-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-radius: 10px;
	overflow: hidden;
}

.home-card:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}


/* ===== demand widget ===== */


.demand-widget {
  margin-top: 24px;
  padding: 14px 16px;
  background: #f8f8f8;
  border-radius: 6px;
  border-left: 4px solid #d30000;
}

.demand-graph {
  position: relative;
  height: 140px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  overflow: hidden; /* 🔥 Prevent line from sticking out */
}

/* red diagonal */
.demand-line {
  position: absolute;
  left: 15%;
  width: 70%; /* 🔥 Line stays inside graph horizontally */
  top: 70%; 
  height: 2px;
  background: #d30000;
  transform-origin: left center;
  transform: rotate(-28deg); /* 🔥 Slight adjustment */
}

/* marker rides the red line */
.eq-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

.demand-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.demand-controls input[type="range"] {
  flex: 1;
}

#demandDescription {
  margin-top: 8px;
  font-size: 0.9rem;
}


.hero-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background-color: #FFFFFF;
    display: block;
}

.hero-image {
    object-position: center top;
}




