/* GymGuide - Custom styles on top of Tailwind */
:root {
  --primary: #22c55e;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Equipment Cards */
.equip-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s;
  border: 1px solid #334155;
}

/* Make sure modal content can scroll without leaking to body */
#detail-modal,
#scan-modal {
  overscroll-behavior: contain;
}

.equip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: #22c55e;
}

.equip-card .emoji {
  font-size: 2.75rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.equip-card:hover .emoji {
  transform: scale(1.1) rotate(2deg);
}

/* Muscle pills */
.muscle-pill {
  font-size: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background-color: #1e2937;
  color: #86efac;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Detail Modal */
.modal {
  animation: modalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure modals scroll internally on mobile */
#detail-modal .flex-1,
#scan-modal .flex-1 {
  -webkit-overflow-scrolling: touch;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tracker */
.set-row {
  transition: background-color 0.1s;
}

.set-row:hover {
  background-color: #1e2937;
}

.set-input {
  background: #0f172a;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
  max-width: 78px;
  text-align: center;
}

.set-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* History Cards */
.history-card {
  transition: all 0.2s ease;
}

.history-card:hover {
  border-color: #22c55e;
  background-color: #1e2937;
}

/* Tabs */
.tab-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s;
}

.tab-btn.active {
  color: #22c55e;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #22c55e;
  border-radius: 3px 3px 0 0;
}

/* Filters */
.filter-chip {
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  border-radius: 9999px;
  background: #1e2937;
  color: #cbd5e1;
  border: 1px solid #334155;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: #22c55e;
  color: #86efac;
}

.filter-chip.active {
  background: #166534;
  border-color: #22c55e;
  color: white;
}

/* Suggested equipment chips */
.suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  background: #1e2937;
  border: 1px solid #475569;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

.suggest-chip:hover {
  background: #166534;
  border-color: #22c55e;
  transform: translateY(-1px);
}

/* Install banner */
.install-banner {
  background: linear-gradient(90deg, #166534, #14532d);
}

/* Empty states */
.empty-state {
  border: 2px dashed #475569;
}

/* Nice scrollbar for modals / lists */
.scroll-area::-webkit-scrollbar {
  width: 6px;
}
.scroll-area::-webkit-scrollbar-thumb {
  background-color: #475569;
  border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .equip-card .emoji {
    font-size: 2.25rem;
  }
}

/* Mobile Hamburger Menu styles already above */

/* Mobile Hamburger Menu */
.mobile-menu-item {
  transition: background-color 0.1s;
}
.mobile-menu-item:active {
  background-color: #1e2937;
}

/* Image Demo Styles for Equipment Modals */
.image-demo-container {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.image-demo-container img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  background: #020617;
}

.image-caption {
  font-size: 10px;
  color: #64748b;
  text-align: center;
  padding: 6px 8px;
  background: #020617;
}
