/* ============================================================
   DAILY OPPORTUNITIES — tag.css
   Tag listing page — inherits shared tokens from index.css
   Reuses: .listings-grid, .listing-card, .badge-cat, .badge-new,
           .listing-*, .btn-apply, .cat-breadcrumb, .cat-hero-badge,
           .cat-results-bar, .no-results   (from category.css)
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   PAGE SHELL
   ───────────────────────────────────────────────────────────── */
.tag-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0px, 2vw, 16px) 5% clamp(64px, 10vw, 100px);
}

/* ─────────────────────────────────────────────────────────────
   TAG HERO
   Lighter than the category hero — no search box needed.
   ───────────────────────────────────────────────────────────── */
.tag-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #2E7D32 60%, #1B5E20 100%);
  border-radius: 0 0 28px 28px;
  margin: 0 calc(-5vw) 0;           /* bleed to page edges */
  padding: clamp(40px, 6vw, 72px) 5% clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay — matches hero-section in index.css */
.tag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Amber orb accent */
.tag-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255,179,0,.18) 0%, transparent 68%);
  pointer-events: none;
}

.tag-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Breadcrumb inside hero — inherits .cat-breadcrumb from category.css */
.tag-hero .cat-breadcrumb {
  margin-bottom: 20px;
}
.tag-hero .cat-breadcrumb a,
.tag-hero .cat-breadcrumb-sep,
.tag-hero .cat-breadcrumb-current {
  color: rgba(255,255,255,.65);
}
.tag-hero .cat-breadcrumb a:hover {
  color: #fff;
}

/* Title row */
.tag-hero-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag-hero-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.tag-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* Badge — inherits .cat-hero-badge from category.css */
.tag-hero .cat-hero-badge {
  flex-shrink: 0;
}

.tag-hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}
.tag-hero-desc strong {
  color: var(--amber-bright);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   RESULTS BAR
   Reuses .cat-results-bar / .cat-results-count from category.css.
   Small override: no sort dropdown needed on tag pages.
   ───────────────────────────────────────────────────────────── */
.tag-page .cat-results-bar {
  margin-top: 36px;
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────
   LISTINGS GRID OVERRIDE
   Tag pages use the same .listings-grid as index/category but
   with a slightly tighter gap on wide screens.
   ───────────────────────────────────────────────────────────── */
.tag-listings-grid {
  margin-top: 20px;
}

/* ─────────────────────────────────────────────────────────────
   EMPTY / NO-RESULTS STATE
   Reuses .no-results from category.css — no extra styles needed.
   ───────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tag-hero {
    border-radius: 0 0 20px 20px;
    padding: 36px 5% 48px;
  }
  .tag-hero-title-row {
    gap: 10px;
  }
  .tag-hero-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .tag-hero-icon {
    font-size: 1.6rem;
  }
  .tag-page .cat-results-bar {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .tag-hero {
    margin: 0 calc(-5%);            /* keep edge bleed on mobile */
    padding: 28px 5% 40px;
  }
  .tag-hero-title-row {
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag-hero,
  .tag-hero::before,
  .tag-hero::after {
    animation: none !important;
    transition: none !important;
  }
}
