/* ═══════════════════════════════════════
   NEWPHORIA NEWS — Main Stylesheet
   Light/Dark mode + Responsive
   ═══════════════════════════════════════ */

/* ═══ DARK THEME (Default) ═══ */
:root, [data-theme="dark"] {
  --bg: #0A0A18;
  --bg-deep: #101024;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-md: rgba(255,255,255,0.055);
  --bg-card-lg: rgba(255,255,255,0.08);
  --bg-nav: rgba(16,16,36,0.75);
  --bg-footer: rgba(10,10,24,0.95);
  --bg-overlay: rgba(16,16,36,0.7);
  --bg-overlay-deep: rgba(16,16,36,0.95);
  --text: #F0F2F5;
  --text-2: #B8C4D6;
  --text-3: #7B8BA0;
  --text-4: #4A5670;
  --bdr: rgba(255,255,255,0.06);
  --bdr-md: rgba(255,255,255,0.10);
  --bdr-lg: rgba(255,255,255,0.15);
  --shadow: rgba(0,0,0,0.3);
  --shadow-lg: rgba(0,0,0,0.5);
  --space-opacity: 0.15;
  --input-bg: rgba(255,255,255,0.055);
  color-scheme: dark;
}

/* ═══ LIGHT THEME ═══ */
[data-theme="light"] {
  --bg: #F8F9FC;
  --bg-deep: #FFFFFF;
  --bg-card: rgba(255,255,255,0.9);
  --bg-card-md: rgba(255,255,255,0.95);
  --bg-card-lg: #FFFFFF;
  --bg-nav: rgba(255,255,255,0.85);
  --bg-footer: #1A1A2E;
  --bg-overlay: rgba(255,255,255,0.7);
  --bg-overlay-deep: rgba(255,255,255,0.95);
  --text: #1A1A2E;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-4: #9CA3AF;
  --bdr: rgba(0,0,0,0.06);
  --bdr-md: rgba(0,0,0,0.10);
  --bdr-lg: rgba(0,0,0,0.15);
  --shadow: rgba(0,0,0,0.06);
  --shadow-lg: rgba(0,0,0,0.12);
  --space-opacity: 0;
  --input-bg: #F3F4F6;
  color-scheme: light;
}

/* ═══ BRAND COLORS — Hummingbird Palette ═══ */
:root {
  --cyan: #148BB1;
  --teal: #39C5CF;
  --mint: #9DDBC7;
  --violet: #842777;
  --rose: #D45D70;
  --coral: #FD764C;
  --gold: #FDC26A;
  --orange: #EB8971;
  --navy: #0D2058;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; }
a { transition: all 0.2s; }

/* ═══ SPACE BACKGROUND (dark mode only) ═══ */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.space-photo {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=1920&q=80') center/cover no-repeat;
  opacity: var(--space-opacity);
  transition: opacity 0.5s ease;
}
.space-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 20%, rgba(253,118,76,0.05), transparent),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(20,139,177,0.04), transparent),
    linear-gradient(180deg, rgba(10,10,24,0.3) 0%, rgba(16,16,36,0.8) 40%, rgba(16,16,36,0.95) 100%);
  opacity: var(--space-opacity);
  transition: opacity 0.5s ease;
}
[data-theme="light"] .space-grade { opacity: 0; }

.wrap { position: relative; z-index: 1; }

/* ═══ NAVIGATION ═══ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-bottom: 1px solid var(--bdr);
  padding: 0 28px;
  transition: background 0.3s ease;
}
.nav-in { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy) url('/assets/hummingbird.svg') center/80% no-repeat;
  display: block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  font-size: 0; /* hide text fallback */
}
.wordmark { font: 600 22px/1 'Playfair Display', serif; color: var(--text); letter-spacing: -0.5px; }
.wordmark span { color: var(--coral); }

.nav-r { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-r a { text-decoration: none; color: var(--text-3); font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 8px; transition: all 0.2s; }
.nav-r a:hover { color: var(--text); background: var(--bg-card-md); }
.nav-r a.on { color: var(--cyan); background: rgba(20,139,177,0.1); }
.nav-sub {
  background: linear-gradient(135deg, var(--cyan), var(--teal)) !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 3px 14px rgba(20,139,177,0.25);
}
.nav-sub:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(20,139,177,0.35) !important; }
.nav-plus {
  background: linear-gradient(135deg, var(--coral), var(--gold)) !important;
  color: #fff !important; font-weight: 600 !important; margin-left: 2px;
  box-shadow: 0 3px 14px rgba(253,118,76,0.25);
}
.nav-plus:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(253,118,76,0.35) !important; }

/* Theme toggle */
.theme-btn {
  background: none; border: 1px solid var(--bdr-md); border-radius: 8px;
  color: var(--text-3); cursor: pointer; padding: 6px 8px; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
  margin-right: 4px;
}
.theme-btn:hover { color: var(--text); background: var(--bg-card-md); border-color: var(--bdr-lg); }

/* Mobile hamburger */
.nav-mob {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-direction: column; justify-content: space-between;
}
.nav-mob span { display: block; width: 100%; height: 2px; background: var(--text-2); border-radius: 2px; transition: all 0.3s; }

/* ═══ HERO ═══ */
.hero { position: relative; overflow: hidden; margin-bottom: 48px; }
.hero-img {
  width: 100%; height: 520px; position: relative;
  background: var(--bg-deep) url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80') center 30%/cover no-repeat;
  transition: background-image 0.6s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(16,16,36,0.6) 40%, rgba(16,16,36,0.3) 100%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.2) 100%);
}
/* Hummingbird watermark — fixed position, floats as you scroll */
.page-bird {
  position: fixed; right: 20px; top: 50%; transform: scaleX(-1) translateY(-50%);
  width: 380px; height: 380px;
  background: url('/assets/hummingbird.svg') center/contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  filter: brightness(2.5) saturate(0.6);
  animation: birdFloat 10s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
[data-theme="light"] .page-bird { opacity: 0.06; filter: brightness(1.0) saturate(0.4); }
@keyframes birdFloat {
  0%, 100% { transform: scaleX(-1) translateY(-50%); }
  50% { transform: scaleX(-1) translateY(calc(-50% - 18px)); }
}
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 28px 48px; max-width: 1300px; margin: 0 auto; z-index: 3; }
.hero-inner { max-width: 720px; animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); margin-bottom: 18px;
}
.dot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font: 500 clamp(32px,5vw,52px)/1.1 'Playfair Display', serif; color: #fff; letter-spacing: -1.5px; margin-bottom: 14px; }
[data-theme="light"] .hero h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.hero-src strong { color: rgba(255,255,255,0.9); font-weight: 600; }
[data-theme="light"] .hero-src { color: rgba(255,255,255,0.8); }
[data-theme="light"] .hero-src strong { color: #fff; }
.hero-excerpt { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.7; margin: 14px 0 22px; max-width: 600px; }
[data-theme="light"] .hero-excerpt { color: rgba(255,255,255,0.85); }
.hero-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 14px; font-weight: 600; text-decoration: none; transition: gap 0.2s; }
.hero-link:hover { gap: 10px; }

/* ═══ SECTIONS ═══ */
.sec { max-width: 1300px; margin: 0 auto; padding: 0 28px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sec-t { font: 500 22px/1 'Playfair Display', serif; color: var(--text); display: flex; align-items: center; gap: 9px; }
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.fil {
  background: var(--bg-card); border: 1px solid var(--bdr); color: var(--text-3);
  padding: 5px 13px; border-radius: 18px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.fil:hover, .fil.on { background: rgba(20,139,177,0.08); border-color: rgba(20,139,177,0.2); color: var(--cyan); }

/* ═══ FEATURED ROW ═══ */
.feat-row {
  max-width: 1300px; margin: 0 auto 48px; padding: 0 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
}
.feat {
  background: var(--bg-card-lg); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  overflow: hidden; transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit; display: block;
}
[data-theme="light"] .feat { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.feat:hover { transform: translateY(-5px); border-color: var(--bdr-md); box-shadow: 0 20px 60px var(--shadow-lg); }
.feat-img { width: 100%; height: 200px; overflow: hidden; position: relative; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.feat:hover .feat-img img { transform: scale(1.05); }
.feat-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,16,36,0.7) 0%, transparent 60%); }
[data-theme="light"] .feat-ov { background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%); }
.feat-src {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 600; color: #fff;
}
.feat-bloom {
  position: absolute; top: 10px; right: 10px;
  background: rgba(20,139,177,0.15); border: 1px solid rgba(20,139,177,0.25);
  color: var(--cyan); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 14px; backdrop-filter: blur(8px);
}
.feat-body { padding: 20px 22px 22px; }
.feat-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 7px; }
.feat-t { font: 500 18px/1.3 'Playfair Display', serif; color: var(--text); margin-bottom: 8px; letter-spacing: -0.2px; }
.feat-ex { font-size: 13px; color: var(--text-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-m { font-size: 11px; color: var(--text-4); margin-top: 10px; }

/* ═══ MAIN GRID ═══ */
.main { max-width: 1300px; margin: 0 auto; padding: 0 28px 60px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; }

/* ═══ ARTICLE CARDS ═══ */
.feed { display: grid; gap: 16px; }

/* Feed loading skeleton */
#feed-loading {
  display: grid; gap: 16px;
}
#feed-loading.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.ac {
  background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 240px 1fr; overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: inherit;
}
[data-theme="light"] .ac { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.ac:hover { transform: translateY(-3px); border-color: var(--bdr-md); box-shadow: 0 14px 44px var(--shadow-lg); }
.ac-img { position: relative; overflow: hidden; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; transition: transform 0.4s; }
.ac:hover .ac-img img { transform: scale(1.05); }
.ac-ov { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05)); }
.ac-bloom {
  position: absolute; top: 9px; left: 9px; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
  border: 2px solid var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.b5 { background: var(--mint); color: #0A0A18; }
.b4 { background: var(--cyan); color: #0A0A18; }
.b3 { background: var(--gold); color: #0A0A18; }
.ac-src {
  position: absolute; bottom: 9px; left: 9px; display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: 5px;
  font-size: 10px; font-weight: 600; color: #fff;
}
.ac-body { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.ac-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 5px; }
.ac-t { font: 500 17px/1.35 'Playfair Display', serif; color: var(--text); margin-bottom: 7px; }
.ac-ex { font-size: 13px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.ac-m { font-size: 11px; color: var(--text-4); }

/* Category colors */
.c-cyan { color: var(--cyan); }
.c-mint { color: var(--mint); }
.c-violet { color: var(--violet); }
.c-rose { color: var(--rose); }
.c-gold { color: var(--gold); }
.c-orange { color: var(--orange); }

/* ═══ AD UNITS ═══ */
.ad-unit {
  background: var(--bg-card-md); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 20px; position: relative; min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="light"] .ad-unit { background: #FAFBFC; }
.ad-unit--banner { min-height: 90px; }
.ad-label {
  position: absolute; top: 8px; right: 12px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-4);
}
.ad-unit .adsbygoogle { width: 100%; }

/* Legacy in-feed ad and adsense placeholder */
.ifad {
  background: var(--bg-card-md); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 24px 28px; display: flex; gap: 20px; align-items: center; position: relative;
}
[data-theme="light"] .ifad { background: #FAFBFC; }
.ifad-lab { position: absolute; top: 10px; right: 14px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-4); }
.ifad-img { width: 72px; height: 72px; border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.ifad-img img { width: 100%; height: 100%; object-fit: cover; }
.ifad h4 { font: 500 17px/1.3 'Playfair Display', serif; color: var(--text); margin-bottom: 5px; }
.ifad p { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-bottom: 8px; }
.ifad a { color: var(--cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.adsense {
  background: var(--bg-card); border: 1px dashed var(--bdr-md); border-radius: var(--r);
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-4);
}

/* ═══ WONDERFULLY WEIRD ═══ */
.weird { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--bdr); }
.weird-head { margin-bottom: 6px; }
.weird-t { font: 500 22px/1 'Playfair Display', serif; color: var(--text); }
.weird-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; font-style: italic; }
.weird-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wc {
  background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r);
  overflow: hidden; transition: all 0.3s; text-decoration: none; color: inherit; display: block;
}
[data-theme="light"] .wc { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.wc:hover { transform: translateY(-3px); border-color: rgba(240,150,72,0.2); box-shadow: 0 10px 30px var(--shadow-lg); }
.wc-img { width: 100%; height: 130px; overflow: hidden; position: relative; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.wc:hover .wc-img img { transform: scale(1.06); }
.wc-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%); }
.wc-body { padding: 14px 16px 16px; }
.wc-t { font: 500 14px/1.35 'Playfair Display', serif; color: var(--text); margin-bottom: 5px; }
.wc-d { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.wc-tag { margin-top: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--orange); }

/* ═══ SIDEBAR ═══ */
.side { display: flex; flex-direction: column; gap: 22px; }
.sad { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg); overflow: hidden; }
[data-theme="light"] .sad { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.sad-lab { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-4); padding: 10px 18px 0; }
.sad-in { padding: 14px 18px 18px; }
.sad-img { width: 100%; height: 160px; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.sad-img img { width: 100%; height: 100%; object-fit: cover; }
.sad-t { font: 500 18px/1.3 'Playfair Display', serif; color: var(--text); margin-bottom: 5px; }
.sad-d { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-bottom: 8px; }
.sad-cta { color: var(--cyan); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s; }
.sad-cta:hover { gap: 9px; }

/* Premium */
.prem {
  background: linear-gradient(135deg, rgba(253,118,76,0.06), rgba(240,150,72,0.04));
  border: 1px solid rgba(253,118,76,0.15); border-radius: var(--r-lg); padding: 26px;
  position: relative; overflow: hidden;
}
[data-theme="light"] .prem { background: linear-gradient(135deg, rgba(253,118,76,0.04), rgba(240,150,72,0.03)); }
.prem::before { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(253,118,76,0.08), transparent 70%); pointer-events: none; }
.prem-badge { display: inline-block; background: linear-gradient(135deg, var(--violet), var(--rose)); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 5px; margin-bottom: 12px; }
.prem h4 { font: 500 19px/1.3 'Playfair Display', serif; color: var(--text); margin-bottom: 6px; }
.prem > p { font-size: 13px; color: var(--text-3); line-height: 1.55; margin-bottom: 14px; }
.prem-list { list-style: none; margin-bottom: 18px; }
.prem-list li { font-size: 13px; color: var(--text-2); padding: 3px 0 3px 18px; position: relative; }
.prem-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.prem-btn { display: block; width: 100%; padding: 13px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--coral), var(--gold)); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.25s; text-align: center; text-decoration: none; box-shadow: 0 5px 20px rgba(253,118,76,0.25); }
.prem-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(253,118,76,0.4); }
.prem-price { font-size: 12px; color: var(--text-4); text-align: center; margin-top: 8px; }

/* Newsletter */
.nl { background: var(--bg-deep); border: 1px solid var(--bdr-md); border-radius: var(--r-lg); padding: 28px 22px; position: relative; overflow: hidden; }
[data-theme="light"] .nl { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.nl::before { content: ''; position: absolute; top: -50px; right: -50px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(20,139,177,0.06), transparent 70%); pointer-events: none; }
.nl h3 { font: 500 20px/1.3 'Playfair Display', serif; color: var(--text); margin-bottom: 6px; }
.nl > p { font-size: 13px; color: var(--text-3); line-height: 1.55; margin-bottom: 16px; }
.nl-f { display: flex; flex-direction: column; gap: 8px; }
.nl-i { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--bdr-md); background: var(--input-bg); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s; }
.nl-i::placeholder { color: var(--text-4); }
.nl-i:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(20,139,177,0.12); }
.nl-b { width: 100%; padding: 12px; border-radius: 10px; border: none; background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; box-shadow: 0 3px 14px rgba(20,139,177,0.2); }
.nl-b:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(20,139,177,0.35); }

/* Trending */
.trend { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg); padding: 22px; }
[data-theme="light"] .trend { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.trend h3 { font: 500 18px/1 'Playfair Display', serif; color: var(--text); margin-bottom: 16px; }
.ti { display: flex; align-items: flex-start; gap: 12px; padding: 10px 6px; border-radius: 8px; cursor: pointer; transition: background 0.2s; text-decoration: none; color: inherit; }
.ti:hover { background: var(--bg-card-md); }
.ti-n { font: 300 26px/1 'Playfair Display', serif; min-width: 28px; background: linear-gradient(135deg, var(--cyan), var(--mint)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ti-t { font-size: 14px; font-weight: 500; color: var(--text-2); line-height: 1.35; }
.ti-tag { font-size: 11px; color: var(--text-4); margin-top: 2px; }

/* Bloom Picks */
.bp { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg); padding: 22px; }
[data-theme="light"] .bp { background: #fff; box-shadow: 0 1px 3px var(--shadow); }
.bp h3 { font: 500 18px/1 'Playfair Display', serif; color: var(--text); margin-bottom: 3px; }
.bp-sub { font-size: 12px; color: var(--text-4); margin-bottom: 14px; }
.bpi { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--bdr); text-decoration: none; color: inherit; transition: opacity 0.2s; }
.bpi:hover { opacity: 0.7; }
.bpi-img { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.bpi-img img { width: 100%; height: 100%; object-fit: cover; }
.bpi h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 1px; }
.bpi p { font-size: 11px; color: var(--text-4); line-height: 1.4; }

/* Sidebar Ad (AdSense) */
.side-ad {
  background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 16px; min-height: 250px; position: relative; overflow: hidden;
}
.side-ad .ad-label { position: absolute; top: 8px; right: 12px; }

/* ═══ FOOTER ═══ */
footer { background: var(--bg-footer); border-top: 1px solid var(--bdr); padding: 56px 28px 36px; margin-top: 72px; }
[data-theme="light"] footer { color: #B8C4D6; }
.ft-in { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; }
.ft-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ft-desc { font-size: 13px; color: #7B8BA0; line-height: 1.65; max-width: 340px; margin-bottom: 16px; }
.ft-pow { font-size: 11px; color: #4A5670; opacity: 0.5; }
.ft-pow a { color: var(--cyan); text-decoration: none; }
footer h4 { font: 500 14px/1 'Playfair Display', serif; color: #F0F2F5; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { color: #7B8BA0; text-decoration: none; font-size: 13px; transition: color 0.2s; }
footer ul a:hover { color: var(--cyan); }
.ft-bot { max-width: 1300px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; font-size: 11px; color: #4A5670; opacity: 0.4; }

/* ═══ LOAD MORE ═══ */
.load-more { text-align: center; padding: 40px 0; }
.load-btn {
  background: var(--bg-card-md); border: 1px solid var(--bdr-md); color: var(--text-2);
  padding: 14px 48px; border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.3s;
}
.load-btn:hover { background: rgba(20,139,177,0.08); border-color: rgba(20,139,177,0.2); color: var(--cyan); transform: translateY(-2px); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1060px) {
  .feat-row { grid-template-columns: 1fr; }
  .main { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav { padding: 0 16px; }
  .hero-img { height: 360px; }
  .hero-content { padding: 0 16px 32px; }
  .nav-r {
    display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-overlay-deep); backdrop-filter: blur(30px);
    padding: 16px; border-bottom: 1px solid var(--bdr); gap: 4px;
  }
  .nav-r.open { display: flex; }
  .nav-r a { padding: 12px 16px; width: 100%; border-radius: 10px; }
  .nav-mob { display: flex; }
  .ac { grid-template-columns: 1fr; }
  .ac-img img { height: 180px; }
  .weird-grid { grid-template-columns: 1fr; }
  .ft-in { grid-template-columns: 1fr; gap: 28px; }
  .ft-bot { flex-direction: column; gap: 6px; text-align: center; }
  .feat-row { gap: 14px; padding: 0 16px; }
  .sec { padding: 0 16px; }
  .main { padding: 0 16px 60px; }
  .sec-head { flex-direction: column; gap: 12px; align-items: flex-start; }
  .ifad { flex-direction: column; text-align: center; }
}

/* ═══ ENTRANCE ANIMATIONS ═══ */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ac, .feat, .wc { animation: cardIn 0.5s ease-out both; }
.feat:nth-child(1) { animation-delay: 0.05s; }
.feat:nth-child(2) { animation-delay: 0.15s; }
.feat:nth-child(3) { animation-delay: 0.25s; }

/* Better image rendering */
.ac-img img, .feat-img img, .wc-img img, .hero-img {
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Skeleton loading for dynamic content */
.skeleton-card {
  background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 240px 1fr; overflow: hidden; min-height: 170px;
}
.skeleton-card .sk-img { background: linear-gradient(90deg, var(--bg-card-md) 25%, var(--bg-card-lg) 50%, var(--bg-card-md) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-card .sk-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { background: var(--bg-card-lg); border-radius: 6px; height: 14px; animation: shimmer 1.5s infinite; background-size: 200% 100%; background-image: linear-gradient(90deg, var(--bg-card-md) 25%, var(--bg-card-lg) 50%, var(--bg-card-md) 75%); }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.w40 { width: 40%; height: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══ PRINT ═══ */
@media print {
  .space, nav, .side, footer, .ad-unit, .ifad, .adsense, .sad, .prem, .nl { display: none !important; }
  body { background: #fff; color: #000; }
  .ac, .feat, .wc { break-inside: avoid; }
}
