/* Cami - User Mobile-First Styles */

/* Top Nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  z-index: 100;
}
.top-nav h1 {
  font-size: 1.125rem;
  font-weight: 700;
}
.top-nav .nav-avatar {
  position: absolute;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Bottom Tab Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.06);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.625rem;
  color: var(--text-light);
  padding: 4px 0;
  min-width: 56px;
  text-decoration: none;
}
.bottom-nav a.active {
  color: var(--primary);
}
.bottom-nav a .icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* Main content area */
.main-content {
  padding-top: calc(var(--nav-height) + 8px);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  min-height: 100vh;
}

/* Calendar */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.calendar-header h2 {
  font-size: 1rem;
  font-weight: 600;
}
.calendar-nav {
  display: flex;
  gap: 8px;
}
.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.week-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 4px 0;
}
.week-dates .date-cell {
  padding: 8px 0;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 0.875rem;
}
.week-dates .date-cell.today {
  background: var(--text);
  color: white;
}
.week-dates .date-cell.selected {
  background: var(--primary);
  color: white;
}
.week-dates .date-cell.past {
  color: var(--text-light);
}

/* Class card */
.class-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 16px 10px;
}
.class-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.class-time .end-time {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
}
.class-info {
  flex: 1;
}
.class-info h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.class-info .meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.class-spots {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Plan cards */
.plan-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--primary);
}
.plan-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.plan-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.plan-card .price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.plan-card .detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Session counter */
.session-counter {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: var(--radius);
  margin: 16px;
}
.session-counter .count {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.session-counter .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* Teacher card */
.teacher-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.teacher-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.teacher-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.teacher-card .specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.teacher-card .specialty-tag {
  background: #FFF3E0;
  color: #E65100;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.6875rem;
}

/* Login screen */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 32px;
}
.login-screen .logo {
  width: 120px;
  margin-bottom: 24px;
}
.login-screen h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.login-screen p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.btn-line {
  background: #06C755;
  color: white;
  width: 100%;
  max-width: 300px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
}
