/* ════════════════════════════════════════════
   NoirFleet — Multi-Page Additions (pages.css)
   Loads AFTER styles.css. Adds: clickable logo,
   active nav state, sub-page banners, home
   explore grid, and the Travel Journal (blog).
════════════════════════════════════════════ */

/* ---- Clickable logo ---- */
.brand-link { display: inline-flex; align-items: center; transition: opacity 0.2s; }
.brand-link:hover { opacity: 0.85; }

/* ---- Active nav state ---- */
.main-nav a.active {
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
}
.mobile-nav a.active {
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
}

/* ════════════════════════════════════════════
   SUB-PAGE BANNER (page hero strip)
════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 6, 7, 0.85) 0%, rgba(6, 6, 7, 0.35) 60%, rgba(6, 6, 7, 0.6) 100%);
  z-index: 1;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 40px;
}
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0.9;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}
.page-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}
.page-breadcrumb a { color: var(--gold); transition: opacity 0.2s; }
.page-breadcrumb a:hover { opacity: 0.7; }
.page-breadcrumb span { opacity: 0.5; }

/* page bodies share section sizing already from styles.css */
.page-body { background: var(--bg); }

/* ════════════════════════════════════════════
   HOME — EXPLORE GRID
════════════════════════════════════════════ */
.explore-section { background: var(--bg); }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.explore-card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
}
.explore-card:hover { border-color: var(--border-g); transform: translateY(-4px); }
.explore-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 0.5s, filter 0.3s;
}
.explore-card:hover img { transform: scale(1.06); filter: brightness(0.45); }
.explore-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
}
.explore-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.explore-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}
.explore-card-body p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.explore-card-arrow {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* Home CTA band */
.cta-band {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 40px;
}
.cta-band-inner {
  background: linear-gradient(135deg, #12100a, #1a1710);
  border: 1px solid var(--border-g);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.cta-band-inner p { color: var(--muted); font-size: 0.92rem; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   TRAVEL JOURNAL (BLOG)
════════════════════════════════════════════ */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.blog-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}
.blog-search input::placeholder { color: var(--muted); }
.blog-search svg { opacity: 0.5; flex-shrink: 0; }

.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.blog-tag:hover { color: var(--accent); border-color: var(--border-g); }
.blog-tag.active { color: var(--gold); border-color: var(--border-g); background: rgba(255, 209, 102, 0.1); }

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

/* Featured (first) article spans wider */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.article-card:hover { border-color: var(--border-g); transform: translateY(-4px); }
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.article-thumb {
  position: relative;
  overflow: hidden;
  background: var(--card2);
}
.article-card:not(.featured) .article-thumb { height: 190px; }
.article-card.featured .article-thumb { flex: 0 0 48%; min-height: 280px; }
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(6, 6, 7, 0.78);
  border: 1px solid rgba(255, 209, 102, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.article-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: var(--muted);
}
.article-meta .dot-sep { opacity: 0.4; }
.article-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}
.article-card.featured h3 { font-size: 1.5rem; }
.article-excerpt {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.article-readmore {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ---- Single article page ---- */
.article-page { max-width: 820px; margin: 0 auto; padding: 60px 40px; }
.article-page .article-cat-pill {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}
.article-page h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-page-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.article-content { font-size: 1.02rem; line-height: 1.8; color: rgba(255, 255, 255, 0.82); }
.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 32px 0 12px;
}
.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 24px 0 10px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 20px;
  margin: 24px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; border: 1px solid var(--border); }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.article-back:hover { color: var(--gold); }
.article-footer-cta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-footer-cta p { color: var(--muted); font-style: italic; font-size: 0.92rem; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .page-hero-inner { padding: 50px 24px; }
  .cta-band { padding: 0 24px; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.featured { grid-column: span 2; }
}
@media (max-width: 980px) {
  .page-hero { min-height: 240px; }
  .page-hero-inner { padding: 40px 20px; }
  .cta-band { padding: 0 20px; }
  .cta-band-inner { padding: 28px; flex-direction: column; align-items: flex-start; }
  .article-page { padding: 48px 20px; }
}
@media (max-width: 768px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-hero-inner { padding: 32px 16px; }
  .cta-band { padding: 0 16px; }
  .explore-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; flex-direction: column; }
  .article-card.featured .article-thumb { flex: none; min-height: 200px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { max-width: none; }
  .article-page { padding: 36px 16px; }
}

/* ---- Partner logo fallback (shows text if logo image missing) ---- */
.partner-logo-text {
  display: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.partner-logo-wrap.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-wrap.logo-fallback .partner-logo-text { display: block; }

/* ════════════════════════════════════════════
   FIFA featured link-card (on events page)
════════════════════════════════════════════ */
.event-card-link {
  display: block;
  text-decoration: none;
  position: relative;
  border: 1px solid var(--border-g, rgba(255,209,102,0.3));
  border-radius: var(--radius, 18px);
  background: linear-gradient(160deg, rgba(74,158,255,0.08), var(--card, #0d0d10) 60%);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  grid-column: span 2;
}
.event-card-link:hover {
  transform: translateY(-6px);
  border-color: var(--gold, #ffd166);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.event-link-inner {
  position: relative;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 1;
}
.event-featured-badge {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #ffd166);
  border: 1px solid rgba(255,209,102,0.35);
  background: rgba(255,209,102,0.08);
  padding: 5px 12px;
  border-radius: 20px;
}
.event-card-link .event-desc {
  color: var(--muted, rgba(255,255,255,0.6));
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 560px;
}
.event-card-link .event-hint {
  margin-top: 6px;
  font-weight: 700;
  color: var(--gold, #ffd166);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .event-card-link { grid-column: span 1; }
  .event-link-inner { padding: 28px 22px; }
}
