/* ═══════════════════════════════════════════════════════════════════════════
   HOLY PRODUCTS LAB — Jarvis-Level UI
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg-deep: #050a18;
  --bg: #0a0f1a;
  --bg-card: rgba(12, 18, 36, 0.6);
  --bg-card-hover: rgba(16, 24, 48, 0.8);
  --border: rgba(56, 189, 248, 0.08);
  --border-hover: rgba(56, 189, 248, 0.25);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --indigo: #818cf8;
  --indigo-glow: rgba(129, 140, 248, 0.3);
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.5);
  --warning: #fbbf24;
  --warning-glow: rgba(251, 191, 36, 0.5);
  --info: #60a5fa;
  --info-glow: rgba(96, 165, 250, 0.5);
  --error: #f87171;
}

html, body {
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Animated Grid Background ──────────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─── Floating Orbs ─────────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.06) 0%, transparent 70%);
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, 30px); }
  66% { transform: translate(-20px, 50px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, -40px); }
  66% { transform: translate(20px, -20px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, rgba(129, 140, 248, 0.03) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.lobster-icon {
  font-size: 4rem;
  animation: lobsterFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
  position: relative;
  z-index: 1;
}

@keyframes lobsterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── Gradient Text ─────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ─── Glass Cards ───────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cardReveal 0.6s ease-out both;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.1) 50%, rgba(129, 140, 248, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.1),
    0 8px 32px rgba(56, 189, 248, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
  opacity: 1;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Status Badges ─────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.status-live {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.1);
}

.status-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success-glow);
  animation: pulse 2s ease-in-out infinite;
}

.status-beta {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
}

.status-beta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning-glow);
  animation: pulse 2s ease-in-out infinite;
}

.status-soon {
  background: rgba(96, 165, 250, 0.1);
  color: var(--info);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.1);
}

.status-soon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 6px var(--info-glow);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ─── Visit Button ──────────────────────────────────────────────────────── */
.visit-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.1) 100%);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
  position: relative;
  overflow: hidden;
}

.visit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--indigo));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.visit-btn:hover {
  color: white;
  border-color: transparent;
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.visit-btn:hover::before {
  opacity: 1;
}

.visit-btn span,
.visit-btn svg {
  position: relative;
  z-index: 1;
}

/* ─── Admin Inputs ──────────────────────────────────────────────────────── */
.admin-input {
  background: rgba(5, 10, 24, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.admin-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.05);
}

.admin-input::placeholder {
  color: var(--text-dim);
}

select.admin-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ─── Admin Project Items ───────────────────────────────────────────────── */
.admin-project-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.4);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.admin-project-item:hover {
  border-color: var(--border-hover);
  background: rgba(10, 15, 30, 0.6);
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ─── Scan Line (Jarvis effect) ─────────────────────────────────────────── */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.15;
  z-index: 100;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* ─── Corner Brackets (HUD element) ────────────────────────────────────── */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0.3;
}

.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.hud-corner--tl { top: -1px; left: -1px; }
.hud-corner--tl::before { top: 0; left: 0; width: 20px; height: 1px; }
.hud-corner--tl::after { top: 0; left: 0; width: 1px; height: 20px; }

.hud-corner--tr { top: -1px; right: -1px; }
.hud-corner--tr::before { top: 0; right: 0; width: 20px; height: 1px; }
.hud-corner--tr::after { top: 0; right: 0; width: 1px; height: 20px; }

.hud-corner--bl { bottom: -1px; left: -1px; }
.hud-corner--bl::before { bottom: 0; left: 0; width: 20px; height: 1px; }
.hud-corner--bl::after { bottom: 0; left: 0; width: 1px; height: 20px; }

.hud-corner--br { bottom: -1px; right: -1px; }
.hud-corner--br::before { bottom: 0; right: 0; width: 20px; height: 1px; }
.hud-corner--br::after { bottom: 0; right: 0; width: 1px; height: 20px; }

/* ─── Stats Bar (Jarvis data readout) ───────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* ─── Ring Loader (decorative) ──────────────────────────────────────────── */
.ring-decoration {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.08;
}

.ring-decoration::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: ringRotate 10s linear infinite;
}

.ring-decoration::after {
  content: '';
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px solid var(--indigo);
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: ringRotate 7s linear infinite reverse;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* ─── Footer Divider ────────────────────────────────────────────────────── */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.15) 20%, rgba(129, 140, 248, 0.15) 50%, rgba(56, 189, 248, 0.15) 80%, transparent 100%);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lobster-icon {
    font-size: 3rem;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
  }

  .orb { display: none; }

  .stats-bar {
    gap: 20px;
  }

  .stat-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .ring-decoration { display: none; }
}
