/* site.css */

:root {
  --bg: #f3f1ec;
  --surface: #fcfbf8;
  --surface-soft: #f7f4ee;
  --surface-tint: #eaf3f1;

  --text: #243041;
  --muted: #5f6b7a;

  --border: #cfd6cf;

  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #d9ebe7;

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

.wakely-page {
  display: grid;
  gap: 22px;
}

.wakely-grid {
  display: block;
  column-count: 2;
  column-gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  /* border: 1px solid red; */
}

/* Stops panels from breaking/splitting mid-card across columns */
.wakely-grid > * {
  break-inside: avoid;
  margin-bottom: 22px;
}

/* Ensure child elements span full column width */
.wakely-grid .wakely-panel,
.wakely-grid .wakely-page-section {
  width: 100%;
  box-sizing: border-box;
}

/* Clean up last item margin */
.wakely-grid > *:last-child {
  margin-bottom: 0;
}

.wakely-page-section {
  display: grid;
  gap: 20px;
  align-items: start;
  /* border: 1px solid blue; */
}

.wakely-page-title-section {
  background: linear-gradient(180deg, #fcfcfa 0%, #f6f4ef 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.wakely-page-section h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.wakely-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.wakely-subcopy {
  margin-top: 0;
  max-width: 42ch;
  font-size: 16px;
}

.wakely-list {
  display: grid;
  gap: 14px;
}

.wakely-session-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e6ebe6;
}

.wakely-session-block h4 {
  margin: 0 0 0.7rem;
  color: #23304a;
  font-size: 0.95rem;
  font-weight: 700;
}

.wakely-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.wakely-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.wakely-panel-wide {
  grid-column: 1 / -1;
}

.wakely-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* wakely-list-item */
.wakely-list-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 18px;
  padding: 16px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.wakely-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-md);
}

.wakely-list-item select {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.wakely-list-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

.wakely-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.wakely-meta p {
  margin: 0;
}

@media (max-width: 1100px) {
  .wakely-panel-wide {
    grid-column: auto;
  }
}

@media (max-width: 1100px) {
  .wakely-section {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 700px) {
  .wakely-list-item {
    padding: 14px;
    border-radius: 16px;
  }
  .wakely-page-title-section,
  .wakely-panel {
    padding: 20px;
    border-radius: 20px;
  }
  .wakely-grid {
      display: grid;
      grid-template-columns: none;
      gap: 22px;
      column-count: auto; /* Resets columns on mobile */
    }

  .wakely-grid > * {
    margin-bottom: 0; /* Lets CSS grid gap handle spacing on mobile */
  }
}



@media (max-width: 720px) {
  .form-shell {
    padding: 20px;
    border-radius: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}



/* wakely button styling */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #f6f4ef;
  cursor: pointer;
}

.invite-connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 24px 0;
}

.invite-connect-card .form-actions {
  margin-top: 16px;
  justify-content: center;
}


/* Force all form controls and buttons to inherit your app's font */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-button {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-button:hover {
  background: var(--accent-dark);
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px 16px;
}

/* site footer */

.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* flash styling */

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef6f5;
  border: 1px solid #c8dfdb;
}

.flash-error {
  background: #fff1f2;
  border-color: #fecdd3;
}

.flash-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* fields and forms */

.form-page {
  display: grid;
}

.form-shell {
  /* max-width: 880px; */
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-header {
  margin-bottom: 24px;
}

.form-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.form-header h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.form-intro {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
}

.data-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 16px;
  background: #fcfcfa;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

.field input,
.field select {
  min-height: 52px;
}

.field input[type="date"] {
  min-height: 52px;
  height: 52px;
  appearance: auto;
  -webkit-appearance: auto;
  margin: 0px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.form-actions,
.profile-section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}




.item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.item-location {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.item-location {
  color: var(--color-text-muted);
}

.item-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.session-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8f6;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
}



.field-help {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.park-popup {
  min-width: 220px;
}

.park-popup h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.park-popup p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.popup-save-button {
  /* margin-top: 8px; */
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.popup-save-button:hover {
  background: var(--accent-dark);
}

.popup-save-button:disabled {
  opacity: 0.8;
  cursor: default;
}

.inline-delete-form {
  margin: 0;
  flex-shrink: 0;
}

.saved-park-delete-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #475569;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.saved-park-delete-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.saved-park-delete-btn:focus-visible {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.saved-park-delete-btn:active {
  transform: translateY(1px);
  background: #fee2e2;
}

.saved-park-delete-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.stack-form {
  display: grid;
  gap: 24px;
}

.trick-category {
  display: grid;
  gap: 12px;
}

.trick-category h2 {
  font-size: 1.1rem;
  margin: 0;
}


.form-label {
  font-weight: 600;
}

.form-textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  resize: vertical;
  font: inherit;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(1, 105, 111, 0.08);
  color: #01696f;
  font-weight: 600;
}



.form-page {
  padding: 2.5rem 1.25rem 4rem;
}

.form-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #e3e7e2;
  border-radius: 32px;
  background: #fcfcf8;
  box-shadow: 0 18px 40px rgba(31, 42, 68, 0.08);
}

.form-header {
  margin-bottom: 2rem;
}

.form-eyebrow {
  margin: 0 0 0.45rem;
  color: #0d6b68;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-header h1 {
  margin: 0;
  color: #1f2a44;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.form-intro {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: #61707c;
  font-size: 1.05rem;
  line-height: 1.7;
}

.data-form {
  display: grid;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  width: 100%;
}

.field label {
  color: #24314c;
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8dfd9;
  border-radius: 18px;
  background: #ffffff;
  color: #1f2a44;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.95rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #80909a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #96c8c2;
  box-shadow: 0 0 0 4px rgba(13, 107, 104, 0.10);
  background: #fff;
}

.form-page-container {
  max-width: 680px;
  margin: 32px auto;
  padding: 0 16px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.back-link:hover {
  color: var(--accent);
}

.form-header h1 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.subtitle {
  margin: 0 0 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.form-section {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0;
}

.form-section h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
}

.section-desc {
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.mandatory-rating label {
  font-size: 15px;
}

.form-control,
.form-control-lg {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 160ms ease;
}

.form-control-lg {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}

.form-control:focus,
.form-control-lg:focus {
  outline: none;
  border-color: var(--accent);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.radio-card input {
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .rating-grid {
    grid-template-columns: 1fr;
  }
  
  .form-card {
    padding: 20px;
  }
}


/* ------------------------------ */
/* Common to tricks.html & add_session.html */
/* ------------------------------ */

.session-tricks-panel {
  padding: 1.4rem;
  border: 1px solid #e1e7e2;
  border-radius: 26px;
  background: linear-gradient(180deg, #f8fbf9 0%, #fefefc 100%);
}

.session-tricks-header {
  margin-bottom: 1.25rem;
}

.session-tricks-header h2 {
  margin: 0;
  color: #1f2a44;
  font-size: 1.35rem;
  line-height: 1.2;
}

.session-tricks-intro {
  margin: 0.5rem 0 0;
  color: #667480;
  line-height: 1.6;
}


.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}


/* Category blocks and trick grid */

.trick-category-block {
  margin-bottom: 1rem;
}

.trick-category-block:last-of-type {
  margin-bottom: 0;
}

.trick-category-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.trick-check-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Trick row: name left, Regular/Switch right */

.trick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #f3f4f6);
}


.trick-row-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-width: 0; /* prevents long text from breaking flex layout */
}

.trick-row-main .trick-name {
  font-weight: 600;
  color: var(--text, #1f2937);
  font-size: 16px;
}

.trick-row-main .trick-description {
  color: var(--muted, #6b7280);
  font-size: 12px;
  line-height: 1.4;
  margin: 0; /* fixes the excess spacing underneath */
}

.trick-description {
  font-size: 0.8rem;
  color: #6b7280;
}

.trick-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mini Regular / Switch chips */

.mini-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid #dfe7e2;
  background: #f9faf8;
  color: #6b7280;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

/* hide native checkbox but keep a11y */

.mini-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-check span {
  white-space: nowrap;
}

/* checked state via :has() */

.mini-check:has(input[type="checkbox"]:checked) {
  background: #edf7f5;
  border-color: #93c9c0;
  color: #0d6b68;
  box-shadow: 0 6px 16px rgba(13, 107, 104, 0.12);
}

/* hover/focus */

.mini-check:hover {
  background: #f1faf7;
  border-color: #bfd7d2;
  color: #24314c;
}

.mini-check:focus-within {
  outline: 2px solid #96c8c2;
  outline-offset: 2px;
}

.session-tricks-group + .session-tricks-group {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid #e6ebe6;
}

.session-tricks-group h3 {
  margin: 0 0 0.9rem;
  color: #23304a;
  font-size: 1rem;
}

.session-tricks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.trick-check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.trick-check:hover {
  transform: translateY(-1px);
  border-color: #bfd7d2;
  box-shadow: 0 8px 20px rgba(31, 42, 68, 0.06);
}

.trick-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: #0d6b68;
  flex: 0 0 auto;
}

.trick-check span {
  display: flex;
  flex-direction: column;
  color: #1f2a44;
  font-weight: 600;
  line-height: 1.35;
}

.trick-check small {
  margin-top: 0.2rem;
  color: #73808b;
  font-size: 0.82rem;
  font-weight: 500;
}

.trick-check:has(input:checked) {
  border-color: #93c9c0;
  background: #edf7f5;
  box-shadow: 0 10px 24px rgba(13, 107, 104, 0.08);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 0.5rem;
}


.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-size: 1.8rem;
  gap: 0.25rem;
}

/* Hide default radio buttons */
.star-rating input[type="radio"] {
  display: none;
}

/* Default state: Gray stars */
.star-rating label {
  color: #ccc;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

/* Hover & Checked state: Highlight active star and all stars before it */
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #f59e0b; /* Golden yellow */
}


/* Nested difficulty levels inside category */
.trick-level-block {
  margin-bottom: 0.6rem;
  border-radius: 14px;
  background: #f9faf8;
  padding: 0.4rem 0.6rem;
}

.trick-level-block:last-of-type {
  margin-bottom: 0;
}

.trick-level-block > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.trick-level-block > summary::-webkit-details-marker {
  display: none;
}

.trick-level-block > summary::after {
  content: '';
  border: solid #9ca3af;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.trick-level-block[open] > summary::after {
  transform: rotate(-135deg);
}

.trick-level-block .trick-check-grid {
  margin-top: 0.4rem;
}


.summary-trick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.summary-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #edf7f5;
  border: 1px solid #d2e7e2;
  color: #0d6b68;
  font-size: 0.92rem;
  font-weight: 700;
}

.summary-tag.trick-badge-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.trick-tooltip {
  visibility: hidden;
  width: 220px;
  background-color: #1f2937;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 50;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  font-weight: 400;
  text-transform: none;
}

.trick-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.summary-tag.trick-badge-container:hover .trick-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}


@media (max-width: 767px) {
  .trick-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
    align-items: stretch;
  }

  .trick-row-main {
    min-width: 0;
  }

  /* Keep descriptions visible on mobile, just scaled slightly */
  .trick-description {
    display: block;
    font-size: 11px;
    margin-top: 2px;
  }

  .trick-row-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* or keep your current flag setup */
    gap: 0.5rem;
    width: 100%;
  }

  .trick-row-actions label.mini-choice {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 11px;
  }

  .feature-group-summary,
  .category-summary,
  .level-summary {
    min-height: 44px;
    padding-block: 0.85rem;
  }
}


@media (max-width: 720px) {
  .form-page {
    padding: 1.25rem 0.85rem 2.5rem;
  }

  .form-shell {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .summary-medal-card {
    grid-template-columns: 1fr;
  }

  .summary-medal-icon {
    width: 52px;
    height: 52px;
  }
}

/* --------------------------- */
/* rider-dna */
/* --------------------------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------- */
/* session_add.html & tricks.html */
/* --------------------------- */


.trick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.trick-row:last-child {
  border-bottom: 0;
}

.trick-row-main {
  min-width: 0;
}

.trick-name {
  display: block;
  font-weight: 600;
  color: var(--color-text);
}

.trick-description {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.trick-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.mini-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.mini-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mini-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.mini-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: 180ms ease;
}

.mini-choice:hover span {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-soft);
}

.mini-choice input[type="radio"]:checked + span {
  background: #ece8df;
  border-color: #8a857d;
  color: #2b2b2b;
  font-weight: 600;
}

@media (max-width: 720px) {
  .trick-row {
    grid-template-columns: 1fr;
  }

  .trick-row-actions {
    justify-content: flex-start;
  }
}

.trick-title-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tricklist-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e6f1ef;
  border: 1px solid #b9d3cf;
  color: #1f6b63;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}


.feed-user-link {
  color: #1f2a44;
  font-weight: 700;
  text-decoration: none;
}

.feed-user-link:hover,
.feed-user-link:focus-visible {
  color: #0d6b68;
}


/* ==========================================================================
   Instagram Story Exporter Styles
   ========================================================================== */

.session-share-actions {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.share-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.share-modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.share-modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
}

.share-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.share-modal-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
}

.share-modal-footer .btn {
  width: 100%;
}

/* 9:16 Vertical Story Card Canvas Element (Rich 3-Tone Gradient) */
.story-card {
  width: 340px;
  height: 604px;
  min-height: 0;
  background: transparent;
  border-radius: 24px;
  padding: 24px 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Natural spacing between sections */
  position: relative;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}

.story-header,
.story-rider,
.story-footer {
  flex-shrink: 0;
}

.story-park-name,
.story-meta,
.story-rider-name,
.story-rider-handle,
.story-section-title,
.story-footer,
.story-watermark {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.story-watermark {
  position: absolute;
  top: 24px;
  right: 24px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.story-badge {
  display: inline-block;
  /* background: rgba(217, 235, 231, 0.2); */
  color: #a7f3d0; /* Soft mint highlight */
  border: 1px solid rgba(167, 243, 208, 0.35);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.story-park-name {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 6px 0;
  line-height: 1.2;
  color: #ffffff !important; /* Force white text rendering in canvas */
  display: block !important;
  overflow-wrap: anywhere;
}

.story-meta {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 20px 0;
  overflow-wrap: anywhere;
}

.story-rider {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.story-rider-name,
.story-rider-handle {
  min-width: 0;
  overflow-wrap: anywhere;
}

.story-rider-name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.story-rider-handle {
  font-size: 13px;
  color: #5eead4; /* Bright teal glow */
}

.story-section {
  margin-bottom: 18px;
  min-height: 0;
  overflow: hidden;
}

.story-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.story-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 30px;
  gap: 6px;
  max-height: 102px;
  overflow: hidden;
}

.story-tag {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  padding: 6px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.story-tag .sw {
  display: inline-block;
  color: #fbbf24;
  font-weight: 800;
  margin-right: 3px;
  flex-shrink: 0;
}

.story-medals-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  max-height: 88px;
  overflow: hidden;
}

.story-medal-pill {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  max-height: 48px;
  padding: 6px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.story-medal-pill--more {
  min-height: 30px;
  max-height: 30px;
  white-space: nowrap;
}

.story-footer {
  margin-top: auto; /* Pushes footer to bottom cleanly */
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  text-align: center;
  color: #94a3b8;
}

.story-footer strong {
  color: #5eead4;
}

/* site.css */
.share-modal-header h3 {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* Session Card Action Pill Group */
.session-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Share Pill Button */
.session-share-btn {
  background: var(--surface-soft, #f7f4ee);
  border: 1px solid var(--border, #cfd6cf);
  color: var(--text, #243041);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 150ms ease;
}

.session-share-btn:hover {
  background: var(--surface-tint, #eaf3f1);
  border-color: var(--accent, #0f766e);
  color: var(--accent, #0f766e);
}

.session-share-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Split-Screen Layout for Desktop */
@media (min-width: 992px) {
  /* 1. Lock main wrapper height to remaining screen space */
  .layout {
    display: grid;
    grid-template-columns: 420px 1fr; /* Fixed sidebar width + full map */
    gap: 24px;
    height: calc(100vh - 80px); /* Adjust 80px to match your top navbar height */
    overflow: hidden; /* Prevents whole-page window scrolling */
    padding-bottom: 16px;
    box-sizing: border-box;
  }

  /* 2. Make sidebar independently scrollable */
  .sidebar {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-right: 8px;
    box-sizing: border-box;
  }

  /* Custom subtle scrollbar for park list */
  .sidebar::-webkit-scrollbar {
    width: 6px;
  }
  .sidebar::-webkit-scrollbar-thumb {
    background: var(--border, #cfd6cf);
    border-radius: 10px;
  }

  /* 3. Lock Mapbox panel and #map canvas to full height */
  .map-panel,
  #map {
    width: 100%;
    height: 100% !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    justify-content: flex-start;
  }
}

.share-modal-footer button,
.share-modal-footer .btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

.share-modal-footer button:hover,
.share-modal-footer .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   Feed Hypes & Reaction Bar
   ========================================================================== */

.feed-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #cfd6cf);
  flex-wrap: wrap; /* Prevents overflow on very narrow screens */
  gap: 8px;
}

.hype-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
  margin: 0; /* Prevents default form margins from breaking alignment */
}

.hype-btn {
  background: #ffffff;
  border: 1px solid var(--border, #cfd6cf);
  border-radius: 20px;
  padding: 6px 10px; /* Slight touch target boost */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  color: var(--text, #243041);
  touch-action: manipulation;
}

.hype-btn:hover {
  background: var(--surface-tint, #eaf3f1);
  border-color: var(--accent, #0f766e);
}

.hype-btn:focus-visible,
.btn-comment-toggle:focus-visible,
.btn-comment-submit:focus-visible {
  outline: 2px solid var(--accent, #0f766e);
  outline-offset: 2px;
}

.hype-btn.active {
  background: var(--accent, #0f766e);
  border-color: var(--accent, #0f766e);
  color: #ffffff;
}

.hype-count {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.btn-comment-toggle {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--muted, #5f6b7a);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms ease;
}

.btn-comment-toggle:hover {
  color: var(--accent, #0f766e);
}

/* Comment Thread */
.feed-comments-container {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin-top: 10px;
  background: var(--surface-soft, #f7f4ee);
  border-radius: 12px;
  padding: 12px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.comment-item {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: break-word; /* Prevents unbroken strings/URLs from overflowing container */
}

.comment-user {
  color: var(--accent, #0f766e);
  margin-right: 6px;
  font-weight: 700;
}

.comment-text {
  color: var(--text, #243041);
}

.comment-form {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.comment-form input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface, #fcfbf8);
  border: 1px solid var(--border, #cfd6cf);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text, #243041);
  transition: border-color 150ms ease;
}

.comment-form input:focus {
  outline: none;
  border-color: var(--accent, #0f766e);
  box-shadow: 0 0 0 2px var(--accent-soft, #d9ebe7);
}

.btn-comment-submit {
  background: var(--accent, #0f766e);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease;
}

.btn-comment-submit:hover {
  background: var(--accent-dark, #0b5f59);
}

/* ==========================================================================
   Navbar Notification Bell & Badge
   ========================================================================== */

.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--text, #243041);
  text-decoration: none;
  border-radius: 50%;
  transition: background 150ms ease;
}

.nav-icon:hover {
  background: var(--surface-soft, #f7f4ee);
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background-color: #ef4444; /* Clean Red */
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 10px;
  border: 2px solid #ffffff; /* Gives it a cutout look against the icon */
}

/* ==========================================================================
   Notifications Page List
   ========================================================================== */

.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #cfd6cf);
  transition: background 150ms ease;
  position: relative;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--surface-soft, #f7f4ee);
}

/* Slight background tint for unread items */
.notification-item.unread {
  background: var(--surface-tint, #eaf3f1); 
}

.notification-icon {
  font-size: 20px;
  margin-right: 16px;
  background: var(--surface, #fcfbf8);
  border: 1px solid var(--border, #cfd6cf);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-text {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: var(--text, #243041);
  line-height: 1.4;
}

.notification-text strong {
  color: var(--accent, #0f766e);
}

.notification-time {
  font-size: 12px;
  color: var(--muted, #5f6b7a);
}

/* Small blue dot indicator for unread */
.unread-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent, #0f766e);
  border-radius: 50%;
  margin-left: 12px;
}

#special-nav-link {
  color: #7c3aed;
  font-weight: 600;
  background-color: rgba(124, 58, 237, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#special-nav-link:hover {
  background-color: rgba(124, 58, 237, 0.15);
  color: #6d28d9;
}

/* ==========================================
   WAKELY AVATARS & PROFILE PICTURE STYLES
   ========================================== */

/* Base Avatar Styling */
.avatar-sm,
.avatar-md,
.avatar-lg {
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: var(--accent-dark);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Sizing Scale */
.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-md {
  width: 48px;
  height: 48px;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hover States for Clickable Avatars */
a .avatar-sm:hover,
a .avatar-md:hover,
a .avatar-lg:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Profile Upload Component */
.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  /* border: 1px solid green; */
}

.profile-avatar-wrapper .avatar-lg {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.avatar-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* max-width: 320px; */
  /* border: 1px solid red; */
}

.avatar-upload-form input[type="file"] {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.avatar-upload-form input[type="file"]::file-selector-button {
  background: #27272a;
  color: #fff;
  border: 1px solid #3f3f46;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.2s ease;
}

.avatar-upload-form input[type="file"]::file-selector-button:hover {
  background: #3f3f46;
}

/* Layout Alignments */
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Container Layout */
.avatar-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.avatar-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  /* border: 1px solid magenta; */
}

/* Hide native browser file input */
.avatar-input-group input[type="file"] {
  display: none;
}

/* Selected File Name Text */
.file-chosen-text {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Label styled as button */
.avatar-input-group label.btn {
  margin-bottom: 0;
  cursor: pointer;
}

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  width: 100%;
  /* border: 1px solid blue; */
}

.avatar-controls-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .avatar-upload-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .avatar-controls-col {
    width: 100%;
  }

  .avatar-input-group {
    width: 100%;
  }

  .avatar-input-group label.btn,
  .avatar-controls-col button[type="submit"] {
    width: 100%;
    white-space: nowrap;
    /* text-align: center; */
  }

  .file-chosen-text {
    display: block;
    width: 100%;
    word-break: break-all; /* Prevents long image filenames from breaking layout */
  }
}

/* ------------------------------------------------ */
/* tricks.html: category card picker + panels       */
/* ------------------------------------------------ */

.category-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 1.25rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 10px 22px;
  text-align: center;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
  border-color: #d8e2df;
}

.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.category-card-icon .feature-icon {
  width: 56px;
  height: 56px;
}

.category-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* chevron, only visible on the active card */
.category-card-chevron {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--accent);
  border-width: 1.5px 0 0 1.5px;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 160ms ease;
}

/* active state changes colour only, never size or position */
.category-card.is-active {
  border-color: var(--accent);
  background: #fff;
}


.category-card.is-active .category-card-label {
  color: var(--accent);
}

.category-card.is-active .category-card-chevron {
  opacity: 1;
}

/* panel that holds the selected category's tricks */
.category-panel {
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid #dde4de;
  border-radius: 20px;
  background: #ffffff;
}

.category-panel[hidden] {
  display: none;
}

.category-panel-header h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--accent);
}

/* level rows show a count next to the name */
.trick-level-block > summary {
  justify-content: flex-start;
}

.trick-level-block > summary small {
  margin-left: auto;
  margin-right: 0.5rem;
  font-weight: 500;
  color: var(--muted);
}

.trick-level-block > summary::after {
  margin-left: 0;
}

/* tablets: drop the description so five cards still fit in one row */
@media (max-width: 900px) {
  .category-cards {
    gap: 10px;
  }

  .category-card-icon {
    width: 48px;
    height: 48px;
  }

  .category-card-icon .feature-icon {
    width: 48px;
    height: 48px;
  }
}

/* phones: five stacked rows, icon left, chevron right */
@media (max-width: 720px) {
  .category-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding: 8px 12px;
    text-align: left;
    border-radius: 12px;
    min-height: 56px;
  }

  .category-card-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 40px;
    height: 40px;
  }

  .category-card-icon .feature-icon {
    width: 40px;
    height: 40px;
  }

  .category-card-label {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  /* chevron sits at the right, points down when closed, up when active */
  .category-card-chevron {
    position: static;
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: center;
    opacity: 1;
    transform: rotate(-135deg);
    transition: transform 160ms ease;
  }

  .category-card.is-active .category-card-chevron {
    transform: rotate(45deg);
  }

  .category-panel {
    padding: 0.85rem 0.75rem 1rem;
  }
}

/* Verified session badge */
.session-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;

    color: #18794e;
    background: #e8f7ee;
    border: 1px solid #b7e4c7;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

.session-verified-badge i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .session-verified-badge {
        gap: 0.3rem;
        padding: 0.35rem 0.55rem;
        font-size: 0.7rem;
    }
}