/* ============================================================
   LOGINN GAMING CAFE — css/membership.css
   Membership page styles — mobile-first
============================================================ */

/* ─── PLAN CARDS ─────────────────────────────────────────── */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  max-width: 480px;
  margin: 0 auto 48px;
  align-items: stretch;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.member-featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, rgba(0,212,255,0.05), var(--bg-card));
  box-shadow: 0 0 50px rgba(0,212,255,0.1), 0 20px 56px rgba(0,0,0,0.4);
}

.member-popular-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue); color: #000;
  font-family: var(--f-display); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.12em; padding: 4px 14px;
  border-radius: 100px; white-space: nowrap;
}

.member-tier {
  font-family: var(--f-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tier-bronze   { color: #cd7f32; }
.tier-gold     { color: #ffd700; }
.tier-platinum { color: #e5e4e2; }

/* Price row — price + validity side by side on mobile */
.member-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.member-price {
  font-family: var(--f-display); font-size: 2.4rem; font-weight: 900;
  color: var(--blue); line-height: 1;
}

.member-validity {
  font-size: 0.88rem; color: var(--text-dim);
  font-family: var(--f-heading); font-weight: 600; letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Hours block */
.member-hours-block {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.mhb-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 14px 8px; background: rgba(255,255,255,0.02);
}
.mhb-divider { width: 1px; background: var(--border); flex-shrink: 0; }
.mhb-num {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 900;
  color: var(--blue); line-height: 1;
}
.mhb-label {
  font-size: 0.65rem; color: var(--text-muted);
  margin-top: 3px; text-align: center;
}

/* Benefits */
.member-benefits {
  display: flex; flex-direction: column;
  gap: 11px; margin-bottom: 22px; flex: 1;
}
.member-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.87rem; color: var(--text-muted); line-height: 1.45;
}
.member-benefits li i.fa-check {
  color: var(--green); font-size: 0.72rem;
  flex-shrink: 0; margin-top: 3px;
}
.member-featured .member-benefits li { color: var(--text); }

/* CTA button — full width always */
.member-card .btn { width: 100%; justify-content: center; min-height: 48px; }

/* ─── HOW IT WORKS ───────────────────────────────────────── */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  max-width: 480px;
  margin: 0 auto;
}
.hiw-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 22px; text-align: center;
  transition: border-color 0.2s, transform 0.3s;
}
.hiw-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-dim); border: 1px solid rgba(0,212,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 0.9rem; font-weight: 900;
  color: var(--blue); margin: 0 auto 14px;
}
.hiw-title { font-family: var(--f-heading); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hiw-desc  { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; color: var(--text); padding: 0;
  font-family: var(--f-heading); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em; touch-action: manipulation;
  min-height: 44px; /* accessible tap target */
}
.faq-question i { color: var(--blue); flex-shrink: 0; transition: transform 0.3s; font-size: 0.85rem; }
.faq-item.open .faq-question i { transform: rotate(45deg); }

.faq-answer {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 12px; }

/* ─── GET STARTED CTA ────────────────────────────────────── */
.membership-cta-section {
  text-align: center; padding: 36px 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,255,170,0.03));
  border: 1px solid rgba(0,212,255,0.15); border-radius: var(--r);
  max-width: 620px; margin: 0 auto;
}
.membership-cta-title {
  font-family: var(--f-display); font-size: clamp(1.2rem, 5vw, 1.8rem);
  font-weight: 900; color: #fff; margin-bottom: 10px;
}
.membership-cta-sub {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.65;
}
.membership-cta-btns {
  display: flex; flex-direction: column;
  gap: 12px; align-items: stretch;
}
.membership-cta-btns .btn { justify-content: center; min-height: 48px; width: 100%; }

/* ─── TABLET (600px+) ────────────────────────────────────── */
@media (min-width: 600px) {
  .membership-cta-btns {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .membership-cta-btns .btn { width: auto; }
}

/* ─── TABLET LANDSCAPE (768px+) ─────────────────────────── */
@media (min-width: 768px) {
  .how-it-works {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

/* ─── DESKTOP (900px+) ───────────────────────────────────── */
@media (min-width: 900px) {
  .membership-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
  }
  .member-card {
    padding: 28px 24px;
  }

  /* Restore stacked price/validity on desktop — they have room */
  .member-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }
}

/* ─── HOVER — POINTER DEVICES ONLY ──────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .hiw-step:hover { border-color: rgba(0,212,255,0.2); transform: translateY(-3px); }
  .member-card:hover { transform: translateY(-4px); }
  .member-featured:hover { transform: translateY(-6px); }
}