/* ================================================================
   CryptoPRDaily — Editorial/newspaper design
   Deep navy + Press-red + Gold — serif headlines, clean grid
   ================================================================ */
:root {
  --bg:          #0A0E1A;
  --surface:     #141A2A;
  --surface-2:   #1C2338;
  --line:        #252C40;
  --fg:          #F2F4F8;
  --fg-muted:    #9CA3B8;
  --fg-dim:      #6B7389;
  --red:         #E63946;
  --red-hot:     #FF4654;
  --gold:        #FFC847;
  --accent:      #4ECDC4;
  --display:     'Playfair Display', 'Georgia', serif;
  --body:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); line-height: 1.6; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ========== TOP RIBBON (BREAKING) ========== */
.top-ribbon {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hot) 100%);
  color: #fff; padding: 8px 20px; text-align: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  animation: pulse-ribbon 3s infinite;
}
@keyframes pulse-ribbon {
  0%, 100% { background: linear-gradient(90deg, var(--red) 0%, var(--red-hot) 100%); }
  50%      { background: linear-gradient(90deg, var(--red-hot) 0%, var(--red) 100%); }
}
.top-ribbon .live-dot {
  display: inline-block; width: 8px; height: 8px; background: #fff;
  border-radius: 50%; margin-right: 8px; animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0.3 } }

/* ========== NAV ========== */
.nav {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px 0; position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px); background: rgba(20, 26, 42, 0.92);
}
.nav-inner { display: flex; align-items: center; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 26px; font-weight: 900;
  color: var(--fg); letter-spacing: -0.02em;
}
.brand .brand-dot { color: var(--red); }
.brand-tagline { font-family: var(--mono); font-size: 10px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; }
.nav-link {
  color: var(--fg-muted); text-decoration: none; font-weight: 500;
  font-size: 14px; transition: color .15s;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-cta {
  background: var(--red); color: #fff; padding: 10px 20px;
  border-radius: 6px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--red-hot); color: #fff; }

/* ========== HERO SECTION (featured article) ========== */
.hero {
  margin: 40px 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px;
}
.hero-featured {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; position: relative;
  transition: transform .2s, border-color .2s;
}
.hero-featured:hover { transform: translateY(-3px); border-color: var(--red); }
.hero-cover { position: relative; height: 440px; overflow: hidden; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, transparent 50%);
}
.hero-badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: var(--red); color: #fff; padding: 6px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 4px;
}
.hero-meta {
  position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 2;
}
.hero-category {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.hero-title {
  font-family: var(--display); font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900; margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1.15;
  color: #fff;
}
.hero-excerpt { color: #E8EBF2; font-size: 15px; margin-bottom: 10px; }
.hero-byline { color: var(--fg-muted); font-size: 12px; font-family: var(--mono); }

/* Right-side latest list */
.latest-list { display: flex; flex-direction: column; gap: 16px; }
.latest-list h3 {
  font-family: var(--display); font-size: 22px; margin: 0 0 8px;
  padding-bottom: 12px; border-bottom: 2px solid var(--red); color: var(--fg);
}
.latest-item {
  display: flex; gap: 14px; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, transform .15s;
}
.latest-item:hover { border-color: var(--gold); transform: translateX(4px); }
.latest-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.latest-item .meta h4 { margin: 0 0 6px; font-family: var(--display); font-size: 15px; line-height: 1.3; color: var(--fg); font-weight: 700; }
.latest-item .meta .time { font-size: 11px; color: var(--fg-dim); font-family: var(--mono); }
.latest-item .meta .cat { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ========== ARTICLE GRID ========== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 50px 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.section-header h2 {
  font-family: var(--display); font-size: 28px; margin: 0;
  color: var(--fg); font-weight: 900; letter-spacing: -0.01em;
}
.section-header .section-tag {
  background: var(--red); color: #fff; padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase; border-radius: 4px;
}
.article-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: all .2s;
  display: flex; flex-direction: column; cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 10px 30px rgba(230, 57, 70, 0.15); }
.article-card .cover { height: 180px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); overflow: hidden; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .cover img { transform: scale(1.05); }
.article-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat { font-size: 10px; color: var(--red); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.article-card h3 { font-family: var(--display); font-size: 18px; font-weight: 800; margin: 0 0 10px; line-height: 1.3; color: var(--fg); }
.article-card p { color: var(--fg-muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.article-card .time { font-size: 11px; color: var(--fg-dim); font-family: var(--mono); border-top: 1px solid var(--line); padding-top: 12px; }

/* ========== SINGLE ARTICLE PAGE ========== */
.article-wrap { max-width: 820px; margin: 40px auto; padding: 0 20px; }
.article-wrap h1 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 42px); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.15; margin: 20px 0;
}
.article-wrap .meta-bar { color: var(--fg-muted); font-size: 14px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.article-wrap .cover { width: 100%; border-radius: 14px; margin-bottom: 32px; }
.article-wrap article { font-size: 16px; line-height: 1.85; color: var(--fg); }
.article-wrap article h2 { font-family: var(--display); font-size: 28px; font-weight: 900; margin: 40px 0 20px; letter-spacing: -0.01em; color: var(--fg); }
.article-wrap article h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 32px 0 12px; color: var(--gold); }
.article-wrap article p { margin: 16px 0; }
.article-wrap article a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.article-wrap article a:hover { color: var(--gold); border-color: var(--gold); }
.article-wrap article strong { color: var(--gold); }
.article-wrap article blockquote {
  border-left: 4px solid var(--red); padding: 14px 20px; margin: 24px 0;
  background: var(--surface); color: var(--fg-muted); font-style: italic; border-radius: 0 8px 8px 0;
}
.article-wrap article table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--surface); border-radius: 10px; overflow: hidden; }
.article-wrap article table th { background: var(--red); color: #fff; padding: 12px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.article-wrap article table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--fg-muted); }
.article-wrap article ul, .article-wrap article ol { padding-left: 24px; }
.article-wrap article li { margin: 6px 0; }

/* ========== FOOTER ========== */
.footer {
  background: var(--surface); border-top: 2px solid var(--red);
  margin-top: 80px; padding: 50px 0 30px; color: var(--fg-muted);
}
.footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--gold); font-family: var(--display); margin: 0 0 14px; font-size: 16px; }
.footer a { color: var(--fg-muted); display: block; margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 13px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cover { height: 300px; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-link { font-size: 13px; }
  .footer .footer-grid { grid-template-columns: 1fr; }
}
