﻿/* =========================================
   Rogue Fly Fish — Dashboard Shared Styles
   (Dark Mode, Glass UI, Neon Accents)
   ========================================= */
body {
  background: var(--rff-bg) !important;
}

.dashboard-page header,
.dashboard-page .header-row,
.dashboard-page .brand-group {
  height: auto !important;
  min-height: 0 !important;
}

.dashboard-page .hero {
  min-height: unset !important;
}


.hero {
  min-height: unset !important;
}

main {
  position: relative;
  z-index: 10;
}


:root {
  --rff-bg: #0b1221;
  --rff-bg-light: #111a2d;
  --rff-glass-bg: rgba(255,255,255,0.06);
  --rff-glass-border: rgba(255,255,255,0.12);
  --rff-glass-hover: rgba(255,255,255,0.10);
  --rff-text: #e5e7eb;
  --rff-text-muted: #94a3b8;
  --rff-accent: #38bdf8;
  --rff-accent-soft: rgba(56,189,248,0.25);
  --rff-shadow: rgba(0,0,0,0.35);
}

/* Global Layout */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: var(--rff-bg);
  color: var(--rff-text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3.5rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(255,255,255,0.03));
  backdrop-filter: blur(12px);
  border: 1px solid var(--rff-glass-border);
  box-shadow: 0 8px 32px var(--rff-shadow);
  animation: fadeIn 0.6s ease-out;
}

.hero h1 {
  margin: 0 0 0.75rem 0;
  font-size: 2.2rem;
  color: var(--rff-accent);
}

/* GLASS CARD */
.glass-card {
  background: var(--rff-glass-bg);
  border: 1px solid var(--rff-glass-border);
  border-radius: 14px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease;
}

.glass-card:hover {
  background: var(--rff-glass-hover);
}

/* GRID SYSTEM */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* SECTION HEADER */
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.2rem 0 1.2rem;
  color: var(--rff-accent);
}

/* SHIMMER LOADERS */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* SPARKLINE CONTAINER */
.sparkline {
  height: 40px;
  width: 100%;
}

/* MAP CONTAINERS */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  margin: 1rem 0;
  border: 1px solid var(--rff-glass-border);
}

/* FULL-WIDTH SECTIONS */
.full-section {
  padding: 1.5rem;
  background: var(--rff-bg-light);
  border-radius: 12px;
  margin: 2rem 0;
}

/* HEADER SCROLL (Hybrid App Mode) */
#site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: transform 0.35s ease, backdrop-filter 0.35s ease;
  backdrop-filter: blur(8px);
  background: rgba(11,18,33,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#site-header.hidden {
  transform: translateY(-100%);
}

/* FOOTER REVEAL */
footer {
  opacity: 0.15;
  transition: opacity 0.4s ease-out;
}

footer.reveal {
  opacity: 0.9;
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* OVERRIDE HOMEPAGE GLOBALS */
body {
  background: #101522 !important;
}

header,
.header-row,
.brand-group {
  min-height: auto !important;
  height: auto !important;
}

.hero {
  min-height: 0 !important;
  padding-top: 2rem !important;
}

/* ensure dashboard is on top */
main.container {
  position: relative;
  z-index: 20 !important;
  margin-top: 2rem !important;
}

/* reset homepage .container override */
.container {
  margin-top: 0 !important;
}
/* Smaller logo on dashboard pages only */
.dashboard-page .brand-logo {
  max-width: 220px;   /* try 180–240px to taste */
  width: 35vw;
  height: auto;
  display: block;
}

/* Keep header tight and centered on dashboards */
.dashboard-page .header-row {
  align-items: center;
}

.dashboard-page .brand-group {
  gap: 0.75rem;
}
/* ============================
   Header + Navigation (dashboards)
   ============================ */

/* Sticky header bar */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 33, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

/* Layout row */
.header-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + tagline */
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-page .brand-logo {
  max-width: 190px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.tagline {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rff-text-muted);
}

/* --- Desktop nav --- */

.desktop-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.desktop-links > a,
.desktop-links > .dropdown > a {
  color: var(--rff-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
}

.desktop-links > a::after,
.desktop-links > .dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rff-accent);
  transition: width 0.18s ease-out;
}

.desktop-links > a:hover::after,
.desktop-links > .dropdown > a:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  padding: 0.4rem 0.35rem;
  border-radius: 0.75rem;
  background: var(--rff-bg-light);
  box-shadow: 0 18px 40px var(--rff-shadow);
}

.dropdown-content a {
  display: block;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  color: var(--rff-text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 0.4rem;
}

.dropdown-content a:hover {
  background: var(--rff-glass-hover);
  color: var(--rff-accent);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Small “NEW” badge */
.badge-new {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: var(--rff-accent-soft);
  color: var(--rff-accent);
}

/* --- Mobile nav --- */

.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  position: relative;
  cursor: pointer;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--rff-text);
  border-radius: 999px;
}

.hamburger::before { top: 11px; }
.hamburger::after  { bottom: 11px; }

/* Mobile menu container (filled by nav.js) */
.mobile-nav {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 0.75rem;
  font-size: 0.95rem;
}

.mobile-nav a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--rff-text);
}

.mobile-nav a:hover {
  color: var(--rff-accent);
}

/* Style the <details> groups nav.js inserts */
.mobile-nav details {
  padding: 0.25rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0;
  color: var(--rff-text-muted);
}

.mobile-nav summary::marker {
  display: none;
}

/* Responsive: show mobile nav, hide desktop on small screens */
@media (max-width: 768px) {
  .desktop-links {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: block;
  }
}