/* ==========================================================================
   RR4iKK TIME — ZERO-SCROLL 100VH MASTER DASHBOARD (144 FPS KINETIC LUXURY)
   ========================================================================== */

:root {
  --bg-primary: #020713;
  --bg-card: rgba(6, 17, 36, 0.85);
  --border-card: rgba(56, 189, 248, 0.25);
  --border-card-hover: rgba(56, 189, 248, 0.6);
  
  --accent-cyan: #38bdf8;
  --accent-cyan-bright: #67e8f9;
  --accent-emerald: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --font-sans: 'Rajdhani', 'Inter', sans-serif;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden !important; /* STRICT NO-SCROLL */
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  user-select: none;
}

/* 3D Background Canvas */
#globeCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: 
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(192, 132, 252, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(52, 211, 153, 0.1) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}

/* Zero-Scroll App Container */
.site-wrapper {
  position: relative;
  z-index: 2;
  width: 100vw;
  max-width: 1440px;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  margin: 0 auto;
  padding: 0.85rem 2rem 0.65rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   TOP DYNAMIC ISLAND NAVIGATION
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.4rem;
  background: rgba(6, 17, 36, 0.78);
  border: 1.2px solid var(--border-card);
  border-radius: 100px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   CARLOS CASTANEDA 3D HOLOGRAPHIC LOGO STAGE (MY ARTERY STANDARD)
   ========================================================================== */
.nav-brand-box {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s var(--spring-bounce);
}

.nav-brand-box:hover {
  transform: scale(1.03);
}

.holo-stage-clean {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light Pillar Beam */
.holo-light-pillar {
  position: absolute;
  bottom: -4px;
  width: 32px;
  height: 42px;
  background: radial-gradient(ellipse at bottom, rgba(56, 189, 248, 0.6) 0%, rgba(129, 140, 248, 0.2) 50%, transparent 80%);
  clip-path: polygon(25% 100%, 75% 100%, 100% 0%, 0% 0%);
  opacity: 0.8;
  filter: blur(2px);
  pointer-events: none;
  animation: pillarPulse 3s ease-in-out infinite alternate;
}

/* 3D Orbiting Rings */
.holo-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.holo-orbit-outer {
  width: 42px;
  height: 42px;
  border: 1.5px dashed rgba(56, 189, 248, 0.65);
  transform: rotateX(65deg) rotateZ(0deg);
  animation: orbitSpinOuter 8s linear infinite;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.holo-orbit-inner {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(192, 132, 252, 0.7);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotateX(65deg) rotateZ(45deg);
  animation: orbitSpinInner 5s linear infinite reverse;
}

.orbit-sparkle {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #38bdf8, 0 0 14px #818cf8;
}
.spark-1 { top: -2px; left: 50%; }
.spark-2 { bottom: -2px; left: 50%; }

/* Crystal / Book Container */
.holo-crystal-box {
  position: relative;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crystalLevitate 3.5s ease-in-out infinite;
}

.holo-gem-svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.nav-brand-box:hover .holo-gem-svg {
  transform: scale(1.15) rotateY(15deg);
}

.wheel-of-time-ring {
  animation: wheelRotate 12s linear infinite;
  transform-origin: 0px 0px;
}

@keyframes wheelRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.holo-sweep-ray {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, #38bdf8, transparent);
  box-shadow: 0 0 8px #38bdf8;
  opacity: 0.9;
  animation: laserSweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.holo-brand-clean {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-title b {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.7);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.holo-live-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pingGlow 1.8s infinite;
}

@keyframes orbitSpinOuter {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes orbitSpinInner {
  0% { transform: rotateX(65deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateZ(-360deg); }
}

@keyframes crystalLevitate {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-4px) rotateY(10deg); }
}

@keyframes laserSweep {
  0% { top: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 32px; opacity: 0; }
}

@keyframes pillarPulse {
  0% { opacity: 0.4; height: 32px; }
  100% { opacity: 0.9; height: 44px; }
}

@keyframes pingGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; box-shadow: 0 0 15px #38bdf8; }
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn, .tool-btn-fullscreen {
  background: rgba(10, 25, 52, 0.8);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s var(--spring-bounce);
}

.tool-btn:hover, .tool-btn-fullscreen:hover {
  background: var(--accent-cyan);
  color: #020617;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
}

.cyber-btn { background: rgba(56, 189, 248, 0.15); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.radar-btn { background: rgba(52, 211, 153, 0.15); border-color: var(--accent-emerald); color: var(--accent-emerald); }

/* ==========================================================================
   MAIN CONTENT AREA (Fits 100vh)
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 0;
  padding: 0.25rem 0;
}

/* Hero Clock Section */
.hero-clock-section {
  text-align: center;
  flex-shrink: 0;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 18, 38, 0.9);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 100px;
  margin-bottom: 0.35rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.location-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 680px;
  margin: 0 auto 0.6rem auto;
}

/* 3D Kinetic Tilt Clock Card */
.clock-display-card {
  background: var(--bg-card);
  border: 1.2px solid var(--border-card);
  border-radius: 20px;
  padding: 1.2rem 2.5rem;
  max-width: 780px;
  margin: 0 auto 0.65rem auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(24px) saturate(160%);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s ease;
}

.clock-display-card:hover {
  border-color: var(--accent-cyan);
}

.clock-time-huge {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 
    0 0 15px rgba(56, 189, 248, 0.8),
    0 0 35px rgba(56, 189, 248, 0.5),
    0 0 70px rgba(2, 132, 199, 0.35);
}

.clock-colon {
  color: var(--accent-cyan);
  margin: 0 2px;
  display: inline-block;
  animation: neonBlink 1s infinite ease-in-out;
}

@keyframes neonBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 15px var(--accent-cyan); }
  50% { opacity: 0.25; text-shadow: none; }
}

.clock-ms {
  font-family: var(--font-mono);
  font-size: 0.35em;
  color: var(--accent-cyan-bright);
  font-weight: 700;
  margin-left: 4px;
}

.clock-period {
  font-size: 0.3em;
  color: var(--accent-emerald);
  font-weight: 800;
  margin-left: 8px;
}

.clock-date-row {
  margin-top: 0.4rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Options Bar */
.clock-options-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.opt-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.opt-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.opt-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.opt-btn.active, .opt-btn:hover {
  background: var(--accent-cyan);
  color: #020617;
  border-color: var(--accent-cyan);
}

/* Solar & NTP Telemetry Bar */
.solar-stats-section {
  flex-shrink: 0;
  margin: 0.2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.stat-icon { font-size: 1.6rem; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.stat-val { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: #ffffff; }

/* Quick Capitals Carousel Row */
.cities-section {
  flex-shrink: 0;
  margin: 0.2rem 0;
}

.sec-header {
  text-align: center;
  margin-bottom: 0.4rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto;
}

.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(14px);
  transition: all 0.2s ease;
}

.city-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(12, 28, 58, 0.9);
}

.city-name { font-weight: 800; font-size: 0.95rem; }
.city-live-time { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--accent-cyan); }

/* ==========================================================================
   FOOTER (1-Line Compact)
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding-top: 0.4rem;
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan-bright);
}

/* Modal */
.tool-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(24px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.tool-modal.active { display: flex; animation: modalFadeIn 0.3s ease; }

@keyframes modalFadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-cyan);
  border-radius: 24px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(56, 189, 248, 0.35);
}

.modal-close-btn { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; color: var(--accent-cyan); }
.stopwatch-display, .timer-display { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: #ffffff; margin: 1rem 0; text-shadow: 0 0 25px var(--accent-cyan); }
.modal-actions { display: flex; justify-content: center; gap: 10px; }
.action-btn { background: var(--accent-cyan); color: #020617; font-family: var(--font-mono); font-weight: 800; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 0.88rem; }
.reset-btn { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.laps-container { margin-top: 1rem; max-height: 120px; overflow-y: auto; font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-cyan); }
.timer-inputs input { background: rgba(0,0,0,0.6); border: 1px solid var(--border-card); color: #fff; padding: 6px 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 1.1rem; width: 70px; text-align: center; margin: 0 4px; }
