/* ===== GetBot Shared Styles =====
   Single source of truth for GetBot CSS variables, nav, footer, theme toggle.
   All GetBot pages should <link> this file.
*/

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

/* === CSS Variables (Light — default for GetBot) === */
:root {
  --gb-bright: #7C3AED;
  --gb-mid: #8B5CF6;
  --gb-dark: #6D28D9;
  --gb-bright-rgb: 124, 58, 237;
  --gb-dark-rgb: 109, 40, 217;
  --gb-cyan: #06B6D4;
  --gb-cyan-rgb: 6, 182, 212;
  --glass-blur: 16px;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.80);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-border-subtle: rgba(255, 255, 255, 0.25);
  --bg-deep: #f0ecf9;
  --bg-surface: rgba(255, 255, 255, 0.55);
  --bg-elevated: rgba(245, 240, 255, 0.6);
  --text-primary: #1E1B4B;
  --text-secondary: #4C4680;
  --text-muted: #8B85AD;
  --text-dim: #9590B0;
  --border-main: rgba(124, 58, 237, 0.12);
  --border-accent: rgba(124, 58, 237, 0.20);
  --surface-card: rgba(255, 255, 255, 0.60);
  --surface-card-strong: rgba(255, 255, 255, 0.80);
  --surface-input-bg: rgba(245, 240, 255, 0.50);
  --shadow-card: rgba(124, 58, 237, 0.08);
  --footer-bg: rgba(30, 27, 75, 0.85);
  --footer-text: #A78BFA;
  --toast-bg: rgba(30, 27, 75, 0.85);
  --toast-text: #ffffff;
  --success-color: #059669;
  --error-bg: rgba(254, 226, 226, 0.55);
  --error-border: rgba(252, 165, 165, 0.50);
  --error-text: #c00;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* === Dark Theme === */
html[data-theme="dark"] {
  --gb-bright: #A78BFA;
  --gb-mid: #8B5CF6;
  --gb-dark: #7C3AED;
  --gb-bright-rgb: 167, 139, 250;
  --gb-dark-rgb: 124, 58, 237;
  --gb-cyan-rgb: 34, 211, 238;
  --glass-blur: 20px;
  --glass-bg: rgba(15, 15, 35, 0.55);
  --glass-bg-strong: rgba(15, 15, 35, 0.75);
  --glass-border: rgba(167, 139, 250, 0.15);
  --glass-border-subtle: rgba(167, 139, 250, 0.08);
  --bg-deep: #0B0B1E;
  --bg-surface: rgba(15, 15, 35, 0.50);
  --bg-elevated: rgba(25, 20, 55, 0.55);
  --text-primary: #E8E0FF;
  --text-secondary: #A098CC;
  --text-muted: #6B65A0;
  --text-dim: #5A5490;
  --border-main: rgba(167, 139, 250, 0.12);
  --border-accent: rgba(167, 139, 250, 0.20);
  --surface-card: rgba(15, 15, 35, 0.50);
  --surface-card-strong: rgba(15, 15, 35, 0.75);
  --surface-input-bg: rgba(167, 139, 250, 0.08);
  --shadow-card: rgba(0, 0, 0, 0.25);
  --footer-bg: rgba(5, 5, 15, 0.80);
  --footer-text: #6B65A0;
  --toast-bg: rgba(25, 20, 55, 0.85);
  --toast-text: #E8E0FF;
  --success-color: #34d399;
  --error-bg: rgba(220, 38, 38, .08);
  --error-border: rgba(220, 38, 38, .20);
  --error-text: #f87171;
}

/* === Base === */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

/* === Theme Toggle === */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-main);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border-subtle);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gb-bright), var(--gb-dark));
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}
.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--gb-bright);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-phone {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.nav-logout {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-main);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-logout:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.nav-cta {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gb-bright), var(--gb-dark));
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--gb-bright-rgb), 0.3);
}

/* === Footer === */
.gb-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border-subtle);
  color: white;
  padding: 40px;
  text-align: center;
}
.gb-footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.gb-footer-text {
  font-size: 14px;
  color: var(--footer-text);
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--toast-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-subtle);
  color: var(--toast-text);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .gb-footer { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 16px; height: 56px; }
  .nav-title { font-size: 18px; }
  .nav-logo { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  .nav-cta { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
  .nav-logout { padding: 6px 12px; font-size: 12px; }
  .nav-phone { font-size: 13px; }
  .gb-footer { padding: 24px 16px; }
  .gb-footer-logo { font-size: 18px; }
  .gb-footer-text { font-size: 13px; }
  .toast { font-size: 13px; padding: 10px 20px; }
}
