@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
  font-family: 'PhosphateSolid';
  src: url('../fonts/PhosphateSolid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ── RESET & VARIABLES ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F2F4FB;
  --surface: #FFFFFF;
  --surface-2: #E8ECF6;
  --accent: #041FA6;
  --accent-2: #3ECFCF;
  --accent-dim: rgba(4, 31, 166, 0.10);
  --text: #0A0C1A;
  --text-muted: #6B6E8A;
  --border: rgba(4, 31, 166, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Prevent SVG children from stealing click events on buttons */
button svg { pointer-events: none; }

/* Ensure [hidden] always wins over display declarations in CSS */
[hidden] { display: none !important; }

/* ── PAGES ── */
.page {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

.page.active { display: flex; flex-direction: column; }

.page-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 10px;
  flex-shrink: 0;
}

.logo {
  font-family: 'PhosphateSolid', 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  font-weight: normal;
  color: #041FA6;
}

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── BUTTONS (shared) ── */
.btn-primary {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary svg { width: 15px; height: 15px; }

.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary svg { width: 14px; height: 14px; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.nav-btn svg { width: 22px; height: 22px; }

.nav-btn span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.nav-btn.active { color: var(--accent); }

/* ── COMMENT BLOCKS (athlete-profile + activites) ── */
.comment-block {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border);
}

.comment-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
}

.comment-textarea:focus { border-color: var(--accent); }

.comment-send-btn:disabled { opacity: 0.5; }

.comment-sent {
  font-size: 12px;
  color: #48c78e;
  font-weight: 600;
  padding: 4px 0;
}

.comment-coach-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.comment-existing {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
}

