/* ============================================================
   mobile.css — Mobile-native styles for hasaniqbal PWA
   Mobile-first; bottom tabs visible only on ≤768px
   ============================================================ */

/* ── Bottom Tab Bar ─────────────────────────────────────────── */
.bottom-tabs {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .bottom-tabs {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tab-item.active { color: var(--accent); }
  .tab-item:active { transform: scale(0.92); }

  .tab-icon {
    width: 22px;
    height: 22px;
  }

  .tab-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Add bottom padding so content isn't hidden behind tabs */
  body { padding-bottom: 70px; }

  /* Hide desktop nav on mobile */
  .desktop-nav { display: none; }

  /* Full-width sections on mobile */
  .container { padding: 0 16px; }
}

/* ── Page Transitions ───────────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    animation: fadeSlideIn 0.3s ease;
  }

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

/* ── Pull-to-Refresh Indicator ──────────────────────────────── */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 999;
  transition: transform 0.2s ease;
}

.pull-indicator.visible {
  transform: translateX(-50%) translateY(12px);
}

/* ── Mobile Card & Hero Improvements ────────────────────────── */
@media (max-width: 768px) {
  .card { margin: 0 -4px; }
  .hero-title { font-size: 1.8rem; }
  .stat-item { min-width: unset; flex: 1; }
}
