/* features.css – My Features hub page */

/* ── Auth gate ── */
.ftGate {
  max-width: 440px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}
.ftGateInner {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.ftGateIcon {
  font-size: 48px;
  margin-bottom: 16px;
}
.ftGateInner h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}
.ftGateInner p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.ftGateBtn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.ftGateBtn:hover {
  background: #6d28d9;
}

/* ── Hero / Welcome ── */
.ftHero {
  background: linear-gradient(135deg, rgba(124,58,237,0.07) 0%, rgba(236,72,153,0.05) 100%);
  border-bottom: 1px solid var(--bd);
}
.ftHeroInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 22px 36px;
  text-align: center;
}
.ftHeroAvatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(124,58,237,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  overflow: hidden;
  border: 3px solid rgba(124,58,237,0.2);
}
.ftHeroAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ftHeroAvatar.hasInitials {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 24px;
}
.ftHeroTitle {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--text);
}
.ftHeroSub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* Role badge colors */
.ftBadge-athlete {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}
.ftBadge-coach {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}
.ftBadge-director {
  background: rgba(124,58,237,0.12);
  color: #7c3aed;
}
.ftBadge-spectator {
  background: rgba(249,115,22,0.12);
  color: #ea580c;
}

/* ── Section ── */
.ftSection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 22px 24px;
}
.ftSectionTitle {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.ftSectionSub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ── Feature grid ── */
.ftGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ── Feature card ── */
.ftCard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.ftCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.3);
}
.ftCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.ftCard:hover::before {
  opacity: 1;
}

/* Card accent stripe colors */
.ftCard[data-accent="purple"]::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.ftCard[data-accent="blue"]::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ftCard[data-accent="green"]::before  { background: linear-gradient(90deg, #22c55e, #4ade80); }
.ftCard[data-accent="orange"]::before { background: linear-gradient(90deg, #f97316, #fb923c); }
.ftCard[data-accent="pink"]::before   { background: linear-gradient(90deg, #ec4899, #f472b6); }
.ftCard[data-accent="teal"]::before   { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.ftCard[data-accent="red"]::before    { background: linear-gradient(90deg, #ef4444, #f87171); }
.ftCard[data-accent="indigo"]::before { background: linear-gradient(90deg, #6366f1, #818cf8); }

.ftCardIcon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Icon background accents */
.ftCardIcon[data-bg="purple"] { background: rgba(124,58,237,0.10); }
.ftCardIcon[data-bg="blue"]   { background: rgba(59,130,246,0.10); }
.ftCardIcon[data-bg="green"]  { background: rgba(34,197,94,0.10); }
.ftCardIcon[data-bg="orange"] { background: rgba(249,115,22,0.10); }
.ftCardIcon[data-bg="pink"]   { background: rgba(236,72,153,0.10); }
.ftCardIcon[data-bg="teal"]   { background: rgba(20,184,166,0.10); }
.ftCardIcon[data-bg="red"]    { background: rgba(239,68,68,0.10); }
.ftCardIcon[data-bg="indigo"] { background: rgba(99,102,241,0.10); }

.ftCardTitle {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.ftCardDesc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.ftCardFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 8px;
}
.ftCardCta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ftCardCta svg {
  transition: transform 0.15s;
}
.ftCard:hover .ftCardCta svg {
  transform: translateX(3px);
}

/* Premium / upgrade badge */
.ftCardBadge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ftCardBadge--pro {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.15));
  color: var(--accent);
}
.ftCardBadge--included {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
}
.ftCardBadge--new {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}
.ftCardBadge--beta {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}

/* ── Browse Meets ── */
.ftMeetsSection {
  padding-bottom: 60px;
}
.ftMeetsControls {
  margin-bottom: 16px;
}
.ftMeetsSearch {
  width: 100%;
  max-width: 480px;
  padding: 12px 16px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.ftMeetsSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.ftMeetsList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.ftMeetsLoading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.ftMeetsEmpty {
  text-align: center;
  padding: 48px 20px;
}
.ftMeetsEmptyIcon {
  font-size: 40px;
  margin-bottom: 8px;
}
.ftMeetsEmpty p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Meet card */
.ftMeetCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ftMeetCard:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 6px 20px rgba(124,58,237,0.08);
  transform: translateY(-2px);
}
.ftMeetLogo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124,58,237,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.ftMeetLogo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.ftMeetInfo {
  flex: 1;
  min-width: 0;
}
.ftMeetName {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftMeetLocation {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftMeetStats {
  font-size: 12px;
  color: var(--muted);
}
.ftMeetArrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ftMeetCard:hover .ftMeetArrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .ftHeroTitle { font-size: 26px; }
  .ftGrid { grid-template-columns: 1fr; }
  .ftMeetsList { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .ftHeroInner { padding: 28px 16px; }
  .ftHeroAvatar { width: 56px; height: 56px; font-size: 26px; }
  .ftSection { padding: 24px 16px 16px; }
  .ftCard { padding: 20px; }
}
