/* ============================================================
   MyCoachEval — Main Stylesheet
   ============================================================ */

:root {
  --bg: #0a0b0f;
  --surface: #13151c;
  --card: #1a1d27;
  --border: #252836;
  --accent: #f0c040;
  --accent2: #e8503a;
  --accent3: #3aace8;
  --text: #eef0f6;
  --muted: #7a7e94;
  --green: #4cd964;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAV ── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,11,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 2px;
  color: var(--accent); text-decoration: none;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #ffd060; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; justify-content: center; padding: 13px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── HERO ── */
.hero {
  position: relative; padding: 90px 40px 70px;
  text-align: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,192,64,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(240,192,64,0.12);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; padding: 6px 14px; border-radius: 20px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 96px); line-height: .95;
  letter-spacing: 2px; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }

/* ── SEARCH ── */
.search-wrap {
  display: flex; max-width: 640px; margin: 0 auto 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s;
}
.search-wrap:focus-within { border-color: var(--accent); }
.search-wrap select {
  background: var(--surface); border: none; border-right: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; padding: 0 14px; cursor: pointer; outline: none; min-width: 120px;
}
.search-wrap input {
  flex: 1; background: transparent; border: none;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 15px; padding: 14px 18px; outline: none;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap button {
  background: var(--accent); border: none; cursor: pointer;
  padding: 0 20px; font-size: 18px; transition: background .2s;
}
.search-wrap button:hover { background: #ffd060; }

.sport-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sport-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.sport-pill:hover, .sport-pill.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(240,192,64,0.08);
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex; justify-content: center; gap: 60px;
  padding: 30px 40px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px; color: var(--accent); letter-spacing: 1px;
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ── SECTION ── */
section { padding: 50px 40px; max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; }
.section-title span { color: var(--accent); }

.sort-select {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 7px 12px; border-radius: 7px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; outline: none;
}

/* ── COACHES GRID ── */
.coaches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.coach-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .25s; cursor: pointer; text-decoration: none; color: var(--text);
  display: block;
}
.coach-card:hover {
  border-color: rgba(240,192,64,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-banner { height: 5px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.card-body { padding: 20px; }
.card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.coach-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; border: 2px solid var(--border);
  font-weight: 700; color: var(--accent); text-transform: uppercase;
}
.coach-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.sport-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.coach-info .location { font-size: 12px; color: var(--muted); margin-top: 4px; }

.score-badge {
  margin-left: auto; flex-shrink: 0; width: 50px; height: 50px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1;
}
.score-badge small { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.score-great { background: rgba(76,217,100,0.12); color: var(--green); border: 1px solid rgba(76,217,100,0.3); }
.score-good  { background: rgba(240,192,64,0.12); color: var(--accent); border: 1px solid rgba(240,192,64,0.3); }
.score-avg   { background: rgba(232,80,58,0.12); color: var(--accent2); border: 1px solid rgba(232,80,58,0.3); }
.score-none  { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.rating-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rating-row { display: flex; align-items: center; gap: 10px; }
.rating-label { font-size: 12px; color: var(--muted); width: 92px; flex-shrink: 0; }
.bar-track { flex: 1; height: 5px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent3), var(--accent)); transition: width .6s ease; }
.rating-val { font-size: 12px; font-weight: 700; width: 26px; text-align: right; }

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.review-count { font-size: 13px; color: var(--muted); }
.review-count strong { color: var(--text); }
.would-recommend { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.rec-yes { color: var(--green); }
.rec-no  { color: var(--accent2); }

/* ── COACH HERO (profile page) ── */
.coach-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 50px 40px;
  position: relative;
}
.coach-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(240,192,64,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.coach-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; display: inline-block; margin-bottom: 20px; transition: color .2s; }
.back-link:hover { color: var(--text); }
.coach-profile-top { display: flex; gap: 28px; align-items: flex-start; }
.coach-big-avatar {
  width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
  background: var(--card); border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: var(--accent);
  text-transform: uppercase;
}
.coach-profile-info { flex: 1; }
.sport-tag-big { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.coach-profile-info h1 { font-family: 'Bebas Neue', sans-serif; font-size: 44px; letter-spacing: 1px; line-height: 1; margin-bottom: 8px; }
.coach-meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.coach-bio-text { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 500px; }
.coach-score-panel {
  flex-shrink: 0; width: 200px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.big-score { font-family: 'Bebas Neue', sans-serif; font-size: 72px; line-height: 1; color: var(--accent); }
.big-score-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.recommend-bar { font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.review-count-label { font-size: 12px; color: var(--muted); }

/* ── PROFILE SECTION ── */
.profile-section { padding: 40px; max-width: 1200px; margin: 0 auto; }
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.sidebar-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-main { min-width: 0; }

/* ── REVIEWS ── */
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: border-color .2s;
}
.review-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.review-scores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.score-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600;
}
.score-chip .val { color: var(--accent); margin-right: 3px; }
.review-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.review-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.tag.pos { border-color: rgba(76,217,100,0.3); color: var(--green); background: rgba(76,217,100,0.07); }
.tag.neg { border-color: rgba(232,80,58,0.3); color: var(--accent2); background: rgba(232,80,58,0.07); }
.review-meta { margin-left: auto; text-align: right; }
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  padding: 22px 22px 0; display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; }
.modal-close {
  background: var(--surface); border: none; color: var(--muted);
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal-body { padding: 18px 22px 22px; }

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 10px 13px; border-radius: 8px; outline: none; transition: border-color .2s; resize: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 90px; }
.form-error { color: var(--accent2); font-size: 13px; margin-bottom: 8px; min-height: 18px; }

.star-rating { display: flex; gap: 6px; margin-top: 2px; }
.star-btn { background: none; border: none; font-size: 26px; cursor: pointer; transition: transform .15s; color: var(--border); }
.star-btn.active { color: var(--accent); }
.star-btn:hover { transform: scale(1.15); }

.slider-group { display: flex; flex-direction: column; gap: 10px; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row label { width: 110px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent); background: transparent; border: none; padding: 0; }
.slider-val { width: 26px; text-align: center; font-weight: 700; font-size: 14px; color: var(--accent); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 12px; cursor: pointer; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; left: 3px; transition: transform .2s; }
.toggle input:checked ~ .toggle-slider { background: var(--green); }
.toggle input:checked ~ .toggle-slider::before { transform: translateX(20px); }

/* ── AUTH MSG ── */
.auth-msg { text-align: center; padding: 20px 0; color: var(--muted); font-size: 14px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; opacity: 0;
  transition: all .3s; pointer-events: none; z-index: 999; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── LOADING / EMPTY ── */
.loading-state { text-align: center; padding: 40px; color: var(--muted); font-size: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #navbar { padding: 0 16px; }
  .hero { padding: 60px 16px 50px; }
  section, .coach-hero, .profile-section { padding: 30px 16px; }
  .stats-bar { gap: 24px; flex-wrap: wrap; padding: 20px 16px; }
  .coaches-grid { grid-template-columns: 1fr; }
  .coach-profile-top { flex-direction: column; }
  .coach-score-panel { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }
