/* MobileDog Platform — Shared Design System */

:root {
  --md-bg: #0f0f1a;
  --md-surface: #1a1a2e;
  --md-surface-2: #16213e;
  --md-gold: #d4a574;
  --md-gold-light: #e8c9a0;
  --md-copper: #c8825e;
  --md-text: #f0f0f5;
  --md-text-muted: #8888a0;
  --md-green: #4ade80;
  --md-blue: #60a5fa;
  --md-red: #f87171;
  --md-purple: #a78bfa;
  --md-radius: 16px;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--md-bg);
  color: var(--md-text);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--md-bg); }
::-webkit-scrollbar-thumb { background: var(--md-surface-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--md-gold); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 165, 116, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 165, 116, 0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in { animation: fadeIn 1s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Intersection Observer reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Glass cards */
.glass {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 165, 116, 0.12);
}
.glass:hover {
  border-color: rgba(212, 165, 116, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--md-gold-light), var(--md-gold), var(--md-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold button */
.btn-gold {
  background: linear-gradient(135deg, var(--md-gold), var(--md-copper));
  color: #1a1a2e;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

/* Hero gradient mesh */
.hero-mesh {
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.1) 0%, transparent 60%),
              var(--md-bg);
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.chat-bubble {
  background: var(--md-surface-2);
  border-radius: 20px 20px 4px 20px;
  padding: 12px 16px;
  max-width: 85%;
  margin-bottom: 8px;
  animation: slideInRight 0.4s ease;
}
.chat-bubble-bot {
  background: var(--md-surface-2);
  border: 1px solid rgba(212, 165, 116, 0.2);
}
.chat-bubble-user {
  background: linear-gradient(135deg, var(--md-gold), var(--md-copper));
  color: #1a1a2e;
  border-radius: 20px 20px 20px 4px;
  align-self: flex-end;
}

/* Status dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.active { background: var(--md-green); box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.status-dot.idle { background: var(--md-gold); }
.status-dot.offline { background: var(--md-text-muted); }

/* Progress bars */
.progress-bar {
  height: 6px;
  background: var(--md-surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* Tab system */
.tab-active {
  border-bottom: 2px solid var(--md-gold);
  color: var(--md-gold);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* Paw print decorations */
.paw-bg {
  position: absolute;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Loading spinner */
.spinner {
  border: 3px solid var(--md-surface-2);
  border-top-color: var(--md-gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Typing indicator */
.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-text-muted);
  display: inline-block;
  animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* Hide scrollbar for horizontal scrollers */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
