/*
 * RAINBOW VOGG GLOBAL LTD
 * Components — Navigation, Header, Footer, DEC Modules
 */

/* ══════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(14,17,32,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px,3vw,48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav-logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex-shrink: 0; }
.nav-logo-mark {
  width: 40px; height: 40px;
  background: var(--grad-cyan);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 0.88rem;
  color: var(--obsidian); letter-spacing: -0.02em;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-primary { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--high); line-height: 1.2; }
.nav-logo-sub { font-family: var(--font-mono); font-size: 0.58rem; color: var(--ghost); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px,2vw,28px);
}
.nav-link { font-size: 0.86rem; font-weight: 500; color: var(--dim); transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { color: var(--cyan); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-3);
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.dropdown-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: block; padding: 9px 14px; border-radius: var(--r-md); font-size: var(--text-sm); color: var(--dim); transition: all var(--transition); }
.nav-dropdown-item:hover { background: var(--surface); color: var(--high); }

.nav-cta { background: var(--grad-cyan); color: var(--obsidian) !important; padding: 9px 20px; border-radius: var(--r-md); font-weight: 700; font-size: 0.84rem; box-shadow: 0 0 20px rgba(0,212,255,0.2); }
.nav-cta:hover { box-shadow: 0 0 32px rgba(0,212,255,0.4); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--body-text); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; top: var(--nav-height); z-index: 99;
  background: var(--ink);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--high); }
.mobile-nav .nav-cta { display: block; text-align: center; margin-top: var(--space-4); padding: 13px; }

/* ══════════════════════════════════════════════════════
   SITE HEADER (top info bar)
   ══════════════════════════════════════════════════════ */
.site-header-bar {
  background: var(--obsidian);
  border-bottom: 1px solid var(--border);
  padding: 8px clamp(16px,3vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-xs); color: var(--ghost);
  font-family: var(--font-mono);
}
.site-header-bar a { color: var(--ghost); transition: color var(--transition); }
.site-header-bar a:hover { color: var(--cyan); }

/* ══════════════════════════════════════════════════════
   PAGE HERO
   ══════════════════════════════════════════════════════ */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(0,153,217,0.1); top: -200px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(255,184,0,0.05); bottom: -100px; left: -100px; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p { color: var(--dim); max-width: 600px; font-size: var(--text-md); line-height: 1.8; }
.page-hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-8); }

/* HOME HERO */
.home-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero-headline .line { display: block; }
.hero-headline .line-accent { background: var(--grad-cyan); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse-dot 2s infinite; }

/* Hero stats */
.hero-stats { display: flex; align-items: center; gap: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghost); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--ghost), transparent); animation: scroll-anim 2.5s ease-in-out infinite; }
@keyframes scroll-anim { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }

/* Ticker */
.ticker-bar { background: var(--ink); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 11px 0; overflow: hidden; }
.ticker-track { display: flex; align-items: center; gap: var(--space-10); animation: ticker-scroll 50s linear infinite; white-space: nowrap; width: max-content; }
.ticker-track span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghost); }
.ticker-dot { color: var(--cyan) !important; font-size: 0.45rem !important; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   SECTOR CARDS
   ══════════════════════════════════════════════════════ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.sector-card { background: var(--surface); padding: 32px 28px; position: relative; transition: background var(--transition); }
.sector-card:hover { background: var(--ink); }
.sector-card.featured { background: linear-gradient(135deg, #0D1E35, #0A1220); border: 1px solid var(--cyan-dim); margin: -1px; z-index: 1; }
.sector-icon { width: 40px; height: 40px; color: var(--cyan); margin-bottom: var(--space-5); }
.sector-card.featured .sector-icon { color: var(--gold); }
.sector-num { font-family: var(--font-mono); font-size: 0.63rem; color: var(--muted); margin-bottom: var(--space-3); letter-spacing: 0.08em; }
.sector-card h3 { font-size: 1rem; margin-bottom: var(--space-3); }
.sector-card p { font-size: var(--text-sm); color: var(--dim); line-height: 1.65; margin-bottom: var(--space-5); }
.sector-link { color: var(--cyan); font-size: 0.8rem; font-weight: 600; transition: opacity var(--transition); }
.sector-link:hover { opacity: 0.7; }
.sector-badge { position: absolute; top: 18px; right: 18px; background: var(--grad-gold); color: var(--obsidian); font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-full); }

/* ══════════════════════════════════════════════════════
   DEC SPECIFIC
   ══════════════════════════════════════════════════════ */
/* DEC Navigation Rail */
.dec-layout { display: flex; min-height: calc(100vh - var(--nav-height)); }
.dec-rail {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--ink);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.dec-rail-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 16px;
  border: none; background: transparent;
  color: var(--dim); cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  text-align: left; text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.dec-rail-item:hover { color: var(--high); background: rgba(255,255,255,0.03); }
.dec-rail-item.active { color: var(--cyan); background: rgba(0,212,255,0.08); border-left-color: var(--cyan); font-weight: 700; }
.dec-rail-item .item-icon { font-size: 1rem; flex-shrink: 0; }
.dec-rail-badge { background: var(--amber); color: var(--obsidian); font-size: 0.58rem; font-weight: 700; padding: 1px 6px; border-radius: var(--r-full); font-family: var(--font-mono); margin-left: auto; }
.dec-rail-badge.emerald { background: var(--emerald); }
.dec-rail-footer { margin-top: auto; padding: var(--space-4); border-top: 1px solid var(--border); font-size: 0.72rem; color: var(--ghost); line-height: 1.7; }
.dec-main { flex: 1; min-width: 0; padding: clamp(20px, 3vw, 40px); padding-bottom: 80px; }

/* DEC Masthead */
.dec-masthead {
  background: linear-gradient(135deg, #0D1020, var(--obsidian));
  border-bottom: 1px solid var(--border);
  padding: clamp(20px,3vw,36px) clamp(16px,3vw,48px);
}
.dec-stats-row { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.dec-stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 16px; text-align: center; }
.dec-stat-box .val { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--cyan); }
.dec-stat-box .lbl { font-size: 0.66rem; color: var(--ghost); }

/* Division filter */
.division-filter-strip { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; margin-top: var(--space-4); }
.div-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ghost); letter-spacing: 0.08em; text-transform: uppercase; margin-right: var(--space-1); }

/* Module section header */
.module-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); flex-wrap: wrap; gap: var(--space-4); }
.module-header-left h2 { font-size: 1.3rem; margin: 0; }
.module-header-left p { color: var(--dim); font-size: var(--text-xs); margin-top: 3px; }

/* News/article card */
.article-card { cursor: pointer; transition: all var(--transition); }
.article-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.article-card-type-bar { width: 3px; border-radius: 2px; flex-shrink: 0; }
.article-card h3 { font-size: 1rem; line-height: 1.35; }
.article-meta { display: flex; gap: var(--space-4); color: var(--ghost); font-size: 0.74rem; }
.article-featured { background: linear-gradient(135deg, #0D1E35, #0A1220); border-color: var(--cyan-dim); }
.article-featured:hover { border-color: var(--cyan); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.photo-card { border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.photo-card:hover { transform: translateY(-3px); }
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-thumb { height: 160px; position: relative; }
.photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); font-size: 1.5rem; }
.photo-info { padding: var(--space-3) var(--space-4); background: var(--surface); }
.photo-title { font-weight: 600; color: var(--high); font-size: var(--text-sm); margin-bottom: var(--space-2); }

/* Video card */
.video-card { border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.video-card:hover { transform: translateY(-3px); border-color: var(--cyan-dim); }
.video-thumb { position: relative; aspect-ratio: 16/9; }
.video-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); transition: background var(--transition); }
.video-card:hover .video-play-btn { background: rgba(0,0,0,0.6); }
.video-play-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,212,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--obsidian); transition: transform var(--transition); }
.video-card:hover .video-play-circle { transform: scale(1.1); }
.video-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.85); color: var(--white); font-family: var(--font-mono); font-size: 0.68rem; padding: 2px 8px; border-radius: 4px; }
.video-platform { position: absolute; top: 8px; left: 8px; }
.video-info { padding: var(--space-3) var(--space-4) var(--space-4); }
.video-title { font-weight: 700; color: var(--high); font-size: var(--text-sm); line-height: 1.35; margin-bottom: var(--space-2); }

/* VOGG TV */
.voggtv-masthead { background: radial-gradient(ellipse at 30% 50%, #1A0E00, #080C18); border: 1px solid var(--gold-dim); border-radius: var(--r-xl); padding: clamp(24px,4vw,40px); position: relative; overflow: hidden; }
.voggtv-masthead::before { content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,184,0,0.12), transparent); border-radius: 50%; transform: translate(30%,-30%); }
.voggtv-logo { width: 60px; height: 60px; border-radius: 14px; background: var(--grad-gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--obsidian); flex-shrink: 0; }
.stream-card { border-radius: var(--r-lg); transition: border-color var(--transition); }
.stream-card:hover { border-color: var(--border-hi); }
.stream-icon-box { width: 52px; height: 52px; border-radius: var(--r-lg); background: rgba(255,184,0,0.1); border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }

/* Podcast */
.podcast-masthead { background: linear-gradient(135deg, #0D0820, #080C18); border: 1px solid var(--border); border-radius: var(--r-xl); }
.podcast-card { border-radius: var(--r-lg); transition: border-color var(--transition); cursor: pointer; }
.podcast-card:hover { border-color: var(--border-hi); }
.podcast-ep-box { width: 72px; height: 72px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(139,92,246,0.3), var(--obsidian)); border: 1px solid rgba(139,92,246,0.3); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; flex-shrink: 0; }
.ep-num { font-family: var(--font-mono); font-size: 0.58rem; color: var(--violet); }

/* Publications */
.pub-icon { font-size: 2rem; margin-bottom: var(--space-3); }
.pub-card-featured { background: linear-gradient(135deg, #0D1E35, #0A1220); border-color: var(--cyan-dim); }

/* Investor Relations */
.ir-hero { background: linear-gradient(135deg, #0D0820, #080C18); border: 1px solid rgba(139,92,246,0.25); }
.ir-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--space-5); }

/* Events */
.event-card { border-radius: var(--r-lg); transition: border-color var(--transition); cursor: pointer; }
.event-card:hover { border-color: var(--border-hi); }
.event-icon-box { width: 52px; height: 52px; border-radius: var(--r-lg); background: rgba(0,212,255,0.1); border: 1px solid var(--cyan-dim); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.event-reg-bar { height: 4px; background: var(--border); border-radius: var(--r-full); overflow: hidden; margin-top: var(--space-3); }
.event-reg-fill { height: 100%; border-radius: var(--r-full); background: var(--grad-cyan); }
.event-reg-fill.high { background: linear-gradient(90deg, var(--amber), var(--crimson)); }

/* CSR */
.csr-card { border-radius: var(--r-lg); transition: all var(--transition); }
.csr-card:hover { border-color: rgba(0,232,122,0.3); }
.csr-icon-box { width: 44px; height: 44px; border-radius: var(--r-lg); background: rgba(0,232,122,0.1); border: 1px solid rgba(0,232,122,0.25); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.csr-impact-box { background: rgba(0,232,122,0.08); border: 1px solid rgba(0,232,122,0.2); border-radius: var(--r-md); padding: var(--space-3) var(--space-4); }
.csr-impact-label { font-family: var(--font-mono); font-size: 0.63rem; color: var(--emerald); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

/* Careers */
.careers-hero { background: linear-gradient(135deg, #0D1828, #080C18); border: 1px solid var(--border); border-radius: var(--r-xl); }
.role-card { border-radius: var(--r-lg); transition: border-color var(--transition); }
.role-card:hover { border-color: var(--border-hi); }

/* CMS Admin */
.admin-tab-bar { display: flex; gap: 3px; background: var(--surface); border-radius: var(--r-lg); padding: 4px; overflow-x: auto; }
.admin-tab { padding: 9px 16px; border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--ghost); font-family: var(--font-body); white-space: nowrap; transition: all var(--transition); }
.admin-tab.active { background: var(--ink); color: var(--high); }
.admin-stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 14px; }
.admin-stat-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.admin-stat-label { color: var(--ghost); font-size: 0.74rem; margin-top: 6px; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--r-lg); padding: var(--space-8); text-align: center; cursor: pointer; transition: border-color var(--transition); }
.upload-zone:hover { border-color: var(--cyan-dim); }
.article-row { display: flex; gap: var(--space-4); align-items: center; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); flex-wrap: wrap; }
.article-type-bar { width: 5px; height: 36px; border-radius: 3px; flex-shrink: 0; }

/* AI Panel */
.ai-panel { background: linear-gradient(135deg, #100820, #080C18); border: 1px solid rgba(139,92,246,0.3); border-radius: var(--r-xl); }
.ai-prompt-chip { padding: 6px 13px; border-radius: var(--r-full); font-size: 0.74rem; background: rgba(139,92,246,0.12); color: var(--violet); border: 1px solid rgba(139,92,246,0.25); cursor: pointer; font-family: var(--font-body); transition: all var(--transition); }
.ai-prompt-chip:hover { background: rgba(139,92,246,0.22); }
.ai-result-box { background: var(--ink); border-radius: var(--r-lg); padding: var(--space-5); white-space: pre-wrap; color: var(--body-text); line-height: 1.85; font-size: var(--text-sm); }
.ai-loading { text-align: center; padding: var(--space-8); }
.ai-loading-icon { font-size: 1.5rem; margin-bottom: var(--space-3); animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* AI Chatbot */
.chatbot-widget {
  position: fixed; bottom: 24px; right: 24px;
  width: 360px; background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 800;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0; pointer-events: none;
  transition: all 0.2s;
}
.chatbot-widget.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.chatbot-header { padding: 14px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(0,212,255,0.1), var(--ink)); display: flex; align-items: center; gap: var(--space-3); }
.chatbot-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-cyan); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.chatbot-messages { height: 320px; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.chat-bubble { max-width: 80%; padding: 10px 13px; border-radius: var(--r-lg); font-size: var(--text-sm); line-height: 1.6; }
.chat-bubble.bot { background: var(--surface); border: 1px solid var(--border); border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); }
.chat-bubble.user { background: rgba(0,212,255,0.12); border: 1px solid var(--cyan-dim); border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg); align-self: flex-end; }
.chatbot-input-row { padding: var(--space-3); border-top: 1px solid var(--border); display: flex; gap: var(--space-2); }

/* Chatbot trigger button */
.chatbot-trigger { position: fixed; bottom: 24px; right: 24px; z-index: 799; width: 52px; height: 52px; border-radius: 50%; background: var(--grad-cyan); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 20px rgba(0,212,255,0.35); transition: all var(--transition); }
.chatbot-trigger:hover { transform: scale(1.08); }
.chatbot-trigger.open { opacity: 0; pointer-events: none; }

/* Search overlay */
.search-overlay { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: rgba(8,12,24,0.96); backdrop-filter: blur(8px); z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box-large { background: var(--ink); border: 1px solid var(--border); border-radius: var(--r-xl); width: 100%; max-width: 680px; overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.search-input-large { flex: 1; background: none; border: none; font-size: 1.1rem; color: var(--high); font-family: var(--font-body); outline: none; }
.search-results { max-height: 400px; overflow-y: auto; }
.search-result-item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-5); cursor: pointer; transition: background var(--transition); }
.search-result-item:hover { background: var(--surface); }
.search-result-icon { font-size: 1rem; flex-shrink: 0; }
.search-result-title { font-weight: 600; color: var(--high); font-size: var(--text-sm); }
.search-result-type { font-size: var(--text-xs); color: var(--ghost); }
.search-empty { padding: 32px 20px; text-align: center; color: var(--ghost); font-size: var(--text-sm); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer { background: var(--ink); border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 300px 1fr; gap: 80px; padding: var(--space-16) 0 var(--space-12); }
.footer-tagline { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.footer-desc { font-size: var(--text-sm); color: var(--dim); line-height: 1.7; }
.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ghost); margin-bottom: var(--space-4); }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--dim); padding: 3px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding: var(--space-5) 0; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { font-size: 0.78rem; color: var(--ghost); }
.footer-domain { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all var(--transition); color: var(--ghost); }
.footer-social a:hover { border-color: var(--cyan-dim); color: var(--cyan); }

/* Newsletter in footer */
.newsletter-strip { background: linear-gradient(135deg, #0D1828, #080C18); border-top: 1px solid var(--border-hi); border-bottom: 1px solid var(--border); padding: var(--space-8) 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.newsletter-form { display: flex; gap: var(--space-3); flex-shrink: 0; }
.newsletter-form input { width: 280px; }

/* ── SKIP TO CONTENT (Accessibility — v2.1) ── */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--cyan);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--r-md);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 12px;
  outline: 3px solid var(--high);
  outline-offset: 2px;
}

/* ── SEARCH TRIGGER BUTTON (v2.1) ── */
.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 7px 12px;
  color: var(--dim);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.nav-search-trigger:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.nav-search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ghost);
}
@media (max-width: 768px) {
  .nav-search-trigger span.search-kbd-hint { display: none; }
}

/* Mobile search trigger inside mobile nav */
.mobile-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--dim);
  font-size: 0.9rem;
  margin: 8px 0 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* ── SPLASH / LOADING SCREEN (v2.2) ── */
.splash-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--obsidian);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo {
  width: 120px; height: auto;
  animation: splash-pulse 1.8s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.splash-bar {
  width: 180px; height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.splash-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: splash-sweep 1.2s ease-in-out infinite;
}
@keyframes splash-sweep {
  0% { left: -40%; }
  100% { left: 100%; }
}
.splash-text {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ghost);
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
  .splash-bar::after { animation: none; left: 0; width: 100%; opacity: 0.5; }
}
