/* GymBot UI — shared styles */
/* CSS Variables */
:root, [data-theme="dark"] {
  --bg: #0f0f0f; --bg2: #161616;
  --card-bg: rgba(255,255,255,0.04); --card-border: rgba(255,255,255,0.08);
  --text: #ffffff; --text2: #aaaaaa; --text3: #666666;
  --accent: #25d366; --accent2: #128c7e;
  --nav-bg: rgba(15,15,15,0.92); --nav-border: rgba(255,255,255,0.06);
  --input-bg: rgba(255,255,255,0.06); --input-border: rgba(255,255,255,0.12);
  --mob-bg: #111111; --shadow: rgba(0,0,0,0.4);
}
[data-theme="light"] {
  --bg: #f4f6f8; --bg2: #edf0f2;
  --card-bg: #ffffff; --card-border: rgba(0,0,0,0.08);
  --text: #111111; --text2: #555555; --text3: #999999;
  --accent: #1da851; --accent2: #0e7a3a;
  --nav-bg: rgba(255,255,255,0.95); --nav-border: rgba(0,0,0,0.08);
  --input-bg: rgba(0,0,0,0.04); --input-border: rgba(0,0,0,0.12);
  --mob-bg: #ffffff; --shadow: rgba(0,0,0,0.12);
}

/* Base */
body { background: var(--bg); color: var(--text); }

/* Nav */
#gymbot-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0 20px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 18px; color: var(--text); white-space: nowrap;
  text-decoration: none;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 13px; border-radius: 8px; text-decoration: none;
  color: var(--text2); font-size: 14px; font-weight: 500; transition: all 0.15s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--card-bg); }
.nav-link.active { color: var(--accent); background: rgba(37,211,102,0.1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #000; flex-shrink: 0;
}
.logout-btn {
  background: none; border: none; color: var(--text3); font-size: 13px;
  cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: color 0.15s; white-space: nowrap;
}
.logout-btn:hover { color: #ff3b30; }

/* Icon buttons */
.icon-btn {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 8px; width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text); transition: background 0.15s; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); }

/* Hamburger */
.hamburger { flex-direction: column; gap: 4px; display: none; }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 190;
  background: var(--mob-bg); border-bottom: 1px solid var(--card-border);
  padding: 12px 16px 16px; flex-direction: column; gap: 4px;
  display: none; transition: transform 0.25s ease;
}
.mobile-menu.open { display: flex; }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 180; background: rgba(0,0,0,0.4); display: none;
}
.mobile-overlay.open { display: block; }
.mob-item {
  padding: 12px 16px; border-radius: 10px; text-decoration: none;
  color: var(--text2); font-size: 15px; font-weight: 500; transition: all 0.15s;
}
.mob-item:hover, .mob-item.active { background: rgba(37,211,102,0.12); color: var(--accent); }
.mob-footer {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--card-border);
  display: flex; gap: 8px; align-items: center;
}
.mob-small { color: var(--text3); font-size: 12px; text-decoration: none; }
.mob-small:hover { color: var(--accent); }
.mob-dot { color: var(--text3); font-size: 12px; }

/* Lang Picker */
.lang-picker {
  position: relative; display: inline-flex; align-items: center;
}
.lang-toggle {
  font-size: 17px; width: 34px; height: 34px;
}
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--mob-bg); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 6px; z-index: 300;
  flex-direction: column !important; flex-wrap: nowrap !important;
  gap: 2px; min-width: 120px; width: 120px;
  box-shadow: 0 8px 24px var(--shadow);
}
.lang-dropdown.open { display: flex; }
.lang-dropdown button {
  background: none; border: none; color: var(--text); font-size: 14px;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  text-align: left; transition: background 0.15s; white-space: nowrap;
  width: 100%; display: block;
}
.lang-dropdown button:hover { background: rgba(37,211,102,0.12); color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .logout-btn { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-overlay { display: none !important; }
}
