@import url('fonts.css');

:root {
  --primary-color: #e11d48; /* Crimson / Rose Editorial */
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.light-theme {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: var(--bg-main); color: var(--text-primary); line-height: 1.6; transition: background 0.3s, color 0.3s; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }

/* Ticker Bar */
.ticker-bar { background: var(--primary-color); color: #fff; padding: 0.5rem 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ticker-flex { display: flex; justify-content: space-between; align-items: center; }

/* Header */
.magazine-header { border-bottom: 1px solid var(--border-color); background: var(--bg-card); padding: 1.25rem 0; sticky: top; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.brand-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; text-transform: uppercase; }
.brand-title span { color: var(--primary-color); }
.header-nav { display: flex; gap: 1.5rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.header-nav a:hover, .header-nav a.active { color: var(--primary-color); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.25s ease; border: none; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Theme Toggle Pill */
.theme-toggle-pill { background: var(--bg-card); border: 1px solid var(--border-color); padding: 4px; border-radius: 20px; cursor: pointer; display: inline-flex; }
.pill-track { width: 44px; height: 22px; background: var(--border-color); border-radius: 11px; position: relative; transition: background 0.3s; }
.pill-indicator { width: 18px; height: 18px; background: #fff; border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.3s; }
.dark-theme .pill-track { background: var(--primary-color); }
.dark-theme .pill-indicator { transform: translateX(22px); }

/* Hero Magazine Section */
.hero-editorial { padding: 3rem 0; border-bottom: 1px solid var(--border-color); }
.editorial-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
.featured-article-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.featured-img-box { width: 100%; height: 380px; background: #1e293b; position: relative; overflow: hidden; }
.featured-img-box img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding: 2rem; }
.category-badge { display: inline-block; background: rgba(225, 29, 72, 0.15); color: var(--primary-color); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.article-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.article-excerpt { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.5rem; }
.meta-row { display: flex; items-center: center; gap: 1rem; font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }

/* Trending Sidebar */
.trending-sidebar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; }
.sidebar-heading { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; margin-bottom: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.trending-item { display: flex; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.trending-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.trending-num { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); opacity: 0.8; line-height: 1; }
.trending-info h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.35rem; }

/* Articles Grid */
.articles-section { padding: 4rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.75rem; }
.section-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.article-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.article-thumb { width: 100%; height: 200px; background: #334155; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; margin: 0.5rem 0; }

/* Paywall CTA Banner */
.paywall-banner { background: linear-gradient(135deg, rgba(225,29,72,0.1), rgba(30,41,59,0.9)); border: 1px solid var(--primary-color); border-radius: var(--radius-md); padding: 3rem 2rem; text-align: center; margin: 3rem 0; }

/* Footer */
.magazine-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 3rem 0 2rem 0; margin-top: 4rem; }
