/* ============================================================
   job-advice.css — Job Advice / Blog page
   Follows the JobSnips design system:
     --bg: #0B1320  |  --bg2: #0F1C2E  |  --cyan: #29ABE2
     --cream: #EBE8E1  |  --border: rgba(41,171,226,0.2)
     --muted: rgba(255,255,255,0.4)
     --ease: cubic-bezier(0.25,0.46,0.45,0.94)
   ============================================================ */


/* ── Logo fix for dark hero ─────────────────────────────────── */
#nav .nav-logo-icon .logo-w-stroke { stroke: #ffffff; }
#nav .nav-logo-icon .logo-w-fill   { fill: #ffffff; }


/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform, opacity;
}
.reveal-up.revealed { opacity: 1; transform: translateY(0); }


/* ════════════════════════════ HERO ══════════════════════════════ */

#jv-hero {
  background: var(--bg);
  padding: clamp(100px,11vw,140px) 0 clamp(52px,6vw,80px);
  position: relative;
  overflow: hidden;
}

/* Animated grid background */
.jv-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41,171,226,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,171,226,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 100%);
  pointer-events: none;
  animation: jv-grid-drift 22s linear infinite;
}
@keyframes jv-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.jv-hero-inner { max-width: 620px; }

.jv-hero-heading {
  font-size: clamp(46px, 6.5vw, 80px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -3px;
  line-height: 1.04;
  margin-top: 14px;
}

.jv-hero-sub {
  margin-top: 20px;
  max-width: 500px;
  color: rgba(235,232,225,0.58);
}


/* ── Category filter pills ──────────────────────────────────── */

.jv-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 38px;
}

.jv-cat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(235,232,225,0.55);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.jv-cat:hover {
  background: rgba(41,171,226,0.1);
  border-color: rgba(41,171,226,0.3);
  color: var(--cyan);
}
.jv-cat--active {
  background: var(--cyan) !important;
  border-color: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 700;
}


/* ═══════════════════════ TOP ARTICLES ══════════════════════════ */
/* Cream section — magazine split: featured left + 2 stacked right */

#jv-top {
  background: var(--cream);
  padding: clamp(60px,7vw,100px) 0;
}

.jv-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}


/* Featured card */
.jv-featured {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 28px rgba(11,19,32,0.10);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.jv-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 44px rgba(11,19,32,0.16);
}

.jv-featured-body {
  padding: 28px 32px 32px;
}
.jv-featured-title {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  color: var(--bg);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.jv-featured-excerpt {
  font-size: 14px;
  color: rgba(11,19,32,0.58);
  line-height: 1.75;
  margin-bottom: 20px;
}


/* Stacked cards (right column) */
.jv-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jv-stack-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 18px rgba(11,19,32,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.jv-stack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(11,19,32,0.13);
}

.jv-stack-body {
  padding: 22px 24px 26px;
}
.jv-stack-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
  line-height: 1.45;
  letter-spacing: -0.25px;
  margin-bottom: 8px;
}
.jv-stack-excerpt {
  font-size: 13px;
  color: rgba(11,19,32,0.52);
  line-height: 1.65;
  margin-bottom: 14px;
}


/* ═══════════════════════ ARTICLES GRID ══════════════════════════ */
/* Dark section — 3-column card grid */

#jv-grid {
  background: var(--bg);
  padding: clamp(60px,7vw,100px) 0;
}

.jv-grid-header {
  margin-bottom: 36px;
}

.jv-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.jv-article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.22s, transform 0.22s var(--ease), box-shadow 0.22s;
}
.jv-article-card:hover {
  border-color: rgba(41,171,226,0.38);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.jv-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.jv-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.48;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
  flex: 1;
}
.jv-card-excerpt {
  font-size: 13px;
  color: rgba(235,232,225,0.48);
  line-height: 1.68;
  margin-bottom: 16px;
}


/* Empty state */
.jv-grid-empty {
  text-align: center;
  padding: 64px 0;
  font-size: 15px;
  color: var(--muted);
}


/* ════════════════════ THUMBNAIL SYSTEM ══════════════════════════ */
/* Gradient placeholder covers — no images needed */

.jv-thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Subtle light refraction overlay */
.jv-thumb-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 55%, rgba(255,255,255,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 15%, rgba(255,255,255,0.07) 0%, transparent 45%);
  pointer-events: none;
}

/* "Featured" label on hero thumbnail */
.jv-thumb-label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  background: rgba(11,19,32,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(235,232,225,0.9);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Heights */
.jv-thumb--featured { height: 240px; }
.jv-thumb--stack    { height: 156px; }
.jv-thumb--card     { height: 180px; }

/* Gradient palettes per category */
.jv-thumb--jobsearch  { background: linear-gradient(135deg, #134e2e 0%, #166534 55%, #16a34a 100%); }
.jv-thumb--resume     { background: linear-gradient(135deg, #0c3557 0%, #0369A1 55%, #0ea5e9 100%); }
.jv-thumb--interview  { background: linear-gradient(135deg, #2e1065 0%, #4C1D95 55%, #7C3AED 100%); }
.jv-thumb--linkedin   { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%); }
.jv-thumb--insights   { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #ea580c 100%); }
.jv-thumb--guides     { background: linear-gradient(135deg, #713f12 0%, #b45309 55%, #d97706 100%); }
.jv-thumb--newsletter { background: linear-gradient(135deg, #831843 0%, #9d174d 55%, #be185d 100%); }


/* ═══════════════════════ TAGS ═══════════════════════════════════ */

.jv-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  white-space: nowrap;
}
.jv-tag--jobsearch  { color: #166534; background: #DCFCE7; }
.jv-tag--resume     { color: #0369A1; background: #DBEAFE; }
.jv-tag--interview  { color: #5B21B6; background: #EDE9FE; }
.jv-tag--linkedin   { color: #1d4ed8; background: #EFF6FF; }
.jv-tag--insights   { color: #c2410c; background: #FFEDD5; }
.jv-tag--guides     { color: #92400E; background: #FEF3C7; }
.jv-tag--newsletter { color: #9d174d; background: #FCE7F3; }


/* ═══════════════════════ META ROW ═══════════════════════════════ */

.jv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 12px;
  color: rgba(11,19,32,0.42);
}
/* Dark section meta — lighter text */
#jv-grid .jv-meta { color: rgba(235,232,225,0.36); }

.jv-meta-author { font-weight: 600; }
.jv-meta-sep    { margin: 0 2px; }


/* ═══════════════════════ NEWSLETTER ══════════════════════════════ */

#jv-newsletter {
  background: var(--bg2);
  padding: var(--section-pad, clamp(80px,8vw,120px)) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#jv-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 110%, rgba(41,171,226,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.jv-nl-inner {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jv-nl-heading {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-top: 12px;
}

.jv-nl-form {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  width: 100%;
  max-width: 480px;
}

.jv-nl-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.jv-nl-input::placeholder { color: rgba(235,232,225,0.32); }
.jv-nl-input:focus         { border-color: rgba(41,171,226,0.5); }

.jv-nl-btn {
  background: var(--cyan);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.jv-nl-btn:hover {
  background: #3dbef5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(41,171,226,0.32);
}

.jv-nl-note {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(235,232,225,0.26);
}


/* ═══════════════════════ RESPONSIVE ══════════════════════════════ */

/* Tablet — 2-column grid, stack top articles */
@media (max-width: 1024px) {
  .jv-top-grid         { grid-template-columns: 1fr; }
  .jv-articles-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .jv-hero-heading   { letter-spacing: -2px; }
  .jv-articles-grid  { grid-template-columns: 1fr; }
  .jv-nl-form        { flex-direction: column; }
  .jv-nl-btn         { width: 100%; text-align: center; }
}
