/* AeroSphere™ Anti-Gravity Humidifier Console CSS */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #040406;
  --bg-console: #0c0d15;
  --bg-terminal: #05060b;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.3);
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.3);
  --text-main: #e2e8f0;
  --text-muted: #57657a;
  --cyan-gradient: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --tech-glow: 0 0 25px rgba(6, 182, 212, 0.2);
  --border-console: 1px solid rgba(6, 182, 212, 0.15);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  overflow: hidden; /* Fixed viewport console */
  position: relative;
}

/* Console Grid Pattern Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(6, 182, 212, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 182, 212, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

/* Subtle CRT Scanline overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

@media (max-width: 968px) {
  body {
    overflow-y: auto; /* scrollable on mobile */
  }
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mono {
  font-family: 'Fira Code', monospace;
  font-weight: 400;
}

/* Dashboard Grid Layout */
.dashboard {
  display: grid;
  grid-template-columns: 290px 1fr 345px;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 2;
}

@media (max-width: 968px) {
  .dashboard {
    grid-template-columns: 1fr;
    height: auto;
    width: 100%;
  }
}

/* Columns Base styling */
.console-col {
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(6, 182, 212, 0.08);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
}

/* Scrollbar styling for panels */
.console-col::-webkit-scrollbar {
  width: 4px;
}
.console-col::-webkit-scrollbar-track {
  background: transparent;
}
.console-col::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.1);
  border-radius: 2px;
}

@media (max-width: 968px) {
  .console-col {
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
    padding: 36px 20px;
    overflow-y: visible;
  }
}

/* Col 1: System settings */
.col-system {
  background: #06070a;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  transition: var(--transition);
}

.nav-back:hover {
  color: #fff;
  transform: translateX(-3px);
}

.console-section {
  margin-bottom: 40px;
}

.console-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: block;
}

/* Telemetry Widgets */
.telemetry-card {
  background: var(--bg-terminal);
  border: 1px solid rgba(6, 182, 212, 0.06);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}

.text-green {
  color: var(--accent-green);
  text-shadow: 0 0 6px var(--accent-green-glow);
}

.telemetry-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1.5px;
  overflow: hidden;
}

.telemetry-progress {
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Control buttons inside console */
.console-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(6, 182, 212, 0.1);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
  transition: var(--transition);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.console-btn:hover {
  background: rgba(6, 182, 212, 0.03);
  border-color: rgba(6, 182, 212, 0.3);
}

.console-btn.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

/* Col 2: Gravity Simulator */
.col-simulation {
  background: radial-gradient(circle at center, #0a0d17 0%, #040406 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (max-width: 968px) {
  .col-simulation {
    height: 480px;
  }
}

.sim-header {
  position: absolute;
  top: 40px;
  text-align: center;
}

.sim-title {
  font-size: 32px;
  color: #fff;
  font-weight: 300;
  margin-bottom: 6px;
}

.sim-title span {
  font-weight: 600;
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* Device Shell Graphic */
.simulation-chamber {
  width: 190px;
  height: 370px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 95px;
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-shadow: 
    inset 0 0 30px rgba(0,0,0,0.95),
    0 0 30px rgba(6, 182, 212, 0.05);
}

.glow-ring {
  position: absolute;
  width: 110px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  filter: blur(3px);
  box-shadow: 0 0 15px var(--accent-cyan);
  transition: var(--transition);
}

.glow-ring.top { top: 40px; }
.glow-ring.bottom { bottom: 40px; }

/* Levitating Stream of droplets */
.droplet-stream {
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.droplet {
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffffff;
  animation: floatUp 3s infinite linear;
  opacity: 0;
  transition: var(--transition);
}

.droplet:nth-child(1) { animation-delay: 0s; }
.droplet:nth-child(2) { animation-delay: 0.3s; }
.droplet:nth-child(3) { animation-delay: 0.6s; }
.droplet:nth-child(4) { animation-delay: 0.9s; }
.droplet:nth-child(5) { animation-delay: 1.2s; }
.droplet:nth-child(6) { animation-delay: 1.5s; }
.droplet:nth-child(7) { animation-delay: 1.8s; }
.droplet:nth-child(8) { animation-delay: 2.1s; }
.droplet:nth-child(9) { animation-delay: 2.4s; }
.droplet:nth-child(10) { animation-delay: 2.7s; }

@keyframes floatUp {
  0% { transform: translateY(275px) scale(0.6); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.85; }
  100% { transform: translateY(0px) scale(1); opacity: 0; }
}

.color-pickers {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 16px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}

.color-dot.cyan { background: var(--accent-cyan); }
.color-dot.purple { background: var(--accent-purple); }
.color-dot.green { background: var(--accent-green); }

/* Col 3: Secure Checkout & Spec Deck */
.col-specs {
  background: #06070a;
  border-right: none;
  border-left: 1px solid rgba(6, 182, 212, 0.08);
}

.product-showcase {
  position: relative;
  margin-bottom: 24px;
}

.product-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px var(--accent-green-glow);
}

/* Terminal checkout interface */
.terminal-checkout {
  background: var(--bg-terminal);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 968px) {
  .terminal-checkout {
    flex-grow: 0;
    margin-top: 24px;
  }
}

.terminal-header {
  border-bottom: 1px solid rgba(6, 182, 212, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.terminal-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

.terminal-logs {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  text-shadow: 0 0 4px rgba(6,182,212,0.15);
  line-height: 1.7;
  margin-bottom: 20px;
  height: 90px;
  overflow-y: auto;
  border: 1px solid rgba(6, 182, 212, 0.05);
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
}

/* Scrollbar for terminal logs */
.terminal-logs::-webkit-scrollbar {
  width: 3px;
}
.terminal-logs::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.2);
}

.checkout-price {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.price-unit {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-btn {
  width: 100%;
  background: var(--cyan-gradient);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--tech-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.terminal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.terminal-btn svg {
  width: 14px;
  height: 14px;
}

.terminal-btn:disabled {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
