/* Stock Alert Theme — Financial Ticker / Market News */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #f8f9fa;
  --bg-card:   #ffffff;
  --header-bg: #111827;
  --ticker-bg: #1f2937;
  --red:       #dc2626;
  --red-light: #fef2f2;
  --green:     #16a34a;
  --green-light:#f0fdf4;
  --primary:   #111827;
  --accent:    #dc2626;
  --text:      #111827;
  --text-muted:#6b7280;
  --border:    #e5e7eb;
  --shadow:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; margin: 0; padding: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }

/* ── Header ── */
header {
  background: var(--header-bg);
  padding: 0;
  margin-bottom: 0;
}
header .header-inner { max-width: 1120px; margin: 0 auto; padding: 2rem 1rem; }
.site-title-link { text-decoration: none; color: inherit; }
.site-title-link:hover h1 { color: var(--red); }
h1 { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 0; letter-spacing: -1px; }
header p { font-size: 0.8rem; color: #9ca3af; margin-top: 0.3rem; font-weight: 400; }

/* ── Ticker Bar ── */
.ticker-bar {
  background: var(--ticker-bg);
  border-top: 2px solid var(--red);
  padding: 0.5rem 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: #9ca3af;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2rem;
  letter-spacing: 0.5px;
}
.ticker-up { color: var(--green); }
.ticker-down { color: var(--red); }

/* ── Layout ── */
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 1rem; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; border-radius: 4px; box-shadow: var(--shadow); border-left: 3px solid var(--red); }
.widget-title { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text); text-decoration: none; font-size: 0.84rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-list a:hover { color: var(--red); }
.sidebar-date { font-size: 0.68rem; color: var(--text-muted); font-family: 'DM Mono', monospace; }

/* ── Article Grid ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid transparent; padding: 1.4rem; border-radius: 4px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: border-top-color 0.2s, box-shadow 0.2s; }
.article-card:hover { border-top-color: var(--red); box-shadow: var(--shadow-md); }
.article-card h3 { font-size: 1rem; font-weight: 700; margin: 0.4rem 0 0.7rem; line-height: 1.4; }
.article-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; flex-grow: 1; margin-bottom: 1.2rem; font-weight: 300; }
.article-card .meta { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-family: 'DM Mono', monospace; }
.read-more-btn { background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.78rem; padding: 0.55rem 1rem; text-align: center; transition: background 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.read-more-btn:hover { background: #b91c1c; }

/* ── Article ── */
article { background: var(--bg-card); border: 1px solid var(--border); border-top: 4px solid var(--red); padding: 2.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
article h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.article-content h2 { color: var(--primary); border-left: 4px solid var(--red); padding-left: 0.8rem; }
.article-content h3 { color: var(--primary); font-weight: 700; }
.article-content a { color: var(--red); font-weight: 500; }
.article-content strong { color: var(--primary); }
.crypto-metadata { font-size: 0.75rem; color: var(--text-muted); font-family: 'DM Mono', monospace; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.read-time { background: var(--green-light); color: var(--green); font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 3px; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; font-family: 'DM Mono', monospace; }
.breadcrumb a { color: var(--red); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero Image ── */
.article-hero-image { margin: 1.5rem 0 2rem; border: 1px solid var(--border); overflow: hidden; line-height: 0; box-shadow: var(--shadow); }
.article-hero-image img { width: 100%; height: 360px; object-fit: cover; display: block; }
@media (max-width: 768px) { .article-hero-image img { height: 210px; } }
.image-credit { padding: 0.35rem 0.7rem; background: #f1f5f9; font-size: 0.7rem; color: var(--text-muted); font-family: 'DM Mono', monospace; }

/* ── Tags ── */
.keyword-tags { margin: 1.5rem 0; padding: 0.9rem 1.2rem; background: var(--red-light); border-left: 4px solid var(--red); font-size: 0.82rem; }
.keyword-tags strong { color: var(--red); margin-right: 0.5rem; font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; }
.tag { display: inline-block; background: #fff; color: var(--text); border: 1px solid var(--border); font-size: 0.7rem; font-weight: 700; padding: 0.18rem 0.5rem; margin: 0.15rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Related ── */
.related-articles { margin: 2rem 0 1rem; padding: 1.5rem; background: #f9fafb; border: 1px solid var(--border); }
.related-articles h3 { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--red); }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { color: var(--text); font-weight: 600; font-size: 0.87rem; text-decoration: none; }
.related-list a:hover { color: var(--red); }

/* ── Ad / Footer ── */
.ad-slot { border: 1px dashed #fca5a5; padding: 1rem; margin: 1rem 0; text-align: center; background: var(--red-light); }
footer { margin-top: 3rem; background: var(--header-bg); color: #6b7280; padding: 1.5rem; text-align: center; font-size: 0.8rem; font-family: 'DM Mono', monospace; }
@media (max-width: 768px) { h1 { font-size: 1.8rem; } .article-grid { grid-template-columns: 1fr; } article { padding: 1.5rem; } }
