/* Gym Industry Data - Bilingual (EN / HE) with RTL - Social network style */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #161616;
  --bg-elevated: #1c1c1c;
  --bg-input: #222;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --accent: #e85d04;
  --accent-hover: #f48c2c;
  --accent-soft: rgba(232, 93, 4, 0.18);
  --border: #2a2a2a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --font-heading: 'Oswald', 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --space: 1.25rem;
  --header-h: 56px;
}

[dir="rtl"] {
  --font-heading: 'Heebo', 'Oswald', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header - app bar style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-link-main {
  font-weight: 600;
  color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  margin-top: 0.25rem;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
}

[dir="rtl"] .nav-dropdown-panel {
  right: 0;
  left: auto;
}

.nav-dropdown-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.nav-dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.gym-contact-wrap {
  position: relative;
}

.gym-contact-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.gym-contact-btn:hover {
  background: var(--accent);
  color: #fff;
}

.gym-contact-btn[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
}

.gym-contact-menu {
  position: absolute;
  top: 100%;
  margin-top: 0.2rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 10;
  font-size: 0.85rem;
  white-space: nowrap;
}

.gym-contact-menu[aria-hidden="true"] {
  display: none;
}

.gym-contact-menu a {
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin: 0.2rem 0;
}

.gym-contact-menu a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lang-btn {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232, 93, 4, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, var(--bg-card) 100%),
    url('images/hero-gym.jpg') center / cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-subtitle {
  margin: 0;
  max-width: 42ch;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-count {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--accent);
  display: none;
}

.hero-join {
  margin-top: 1.5rem;
}

.btn-join {
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
}

.hero-welcome-text {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.header-member {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.member-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.member-name {
  font-weight: 500;
  color: var(--text);
}

/* Join overlay */
.join-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.join-overlay--open {
  opacity: 1;
  visibility: visible;
}

.join-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.join-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.join-desc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.join-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.join-form .btn-join-submit {
  width: 100%;
}

/* Feed - social network style (Instagram-like) */
.feed-section {
  padding: 2rem 0 3rem;
}

.feed-section .container {
  max-width: 520px;
}

.feed-main-title {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.feed-upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.feed-upload-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-form-row {
  margin-bottom: 0.75rem;
}

.post-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.post-form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.feed-filter-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-form-media-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-form-file {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.post-form-file-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.post-form-file-label:hover {
  background: var(--accent);
  color: #fff;
}

.post-form-filename {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-form-caption {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.btn-post-submit {
  margin-top: 0.25rem;
  border-radius: var(--radius-sm);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feed-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.feed-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.feed-post-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.feed-post-author {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.feed-post-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-post-media-wrap {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 1;
  max-height: 520px;
}

.feed-post-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feed-post-video {
  max-height: 520px;
}

.feed-post-img {
  object-fit: cover;
}

.feed-post-body {
  padding: 0.875rem 1rem 1rem;
}

.feed-post-caption {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.feed-post-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.feed-like-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.feed-like-btn--liked {
  color: #ff3b5c;
  background: rgba(255, 59, 92, 0.12);
}

.feed-like-icon {
  font-size: 1.2rem;
}

.feed-empty {
  text-align: center;
  color: var(--text-muted);
  margin: 2rem 0;
  display: none;
  font-size: 0.95rem;
}

/* Recipe book (ספר מתכונים) by category */
.recipes-section .recipes-add-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.recipes-add-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.recipes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.recipes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-book-category-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.recipe-book-category-title:first-child {
  margin-top: 0;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.recipe-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.recipe-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.recipe-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.recipe-card-ingredients {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  white-space: pre-wrap;
}

.recipe-card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.recipes-empty {
  text-align: center;
  color: var(--text-muted);
  margin: 1rem 0;
  display: none;
}

.btn-recipe-speak {
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-recipe-speak:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Equipment gallery (מתקני אימון) */
.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.equipment-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.equipment-card-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.equipment-card-instructions {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.btn-equipment-speak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

.btn-equipment-speak:hover {
  background: var(--accent-hover);
}

.equipment-speak-icon {
  font-size: 1.1rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

/* Form */
.submit-section {
  background: var(--bg-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9a9a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-inline-end: 2rem;
}

[dir="rtl"] .form-group select {
  background-position: left 0.85rem center;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--accent);
  color: var(--accent);
}

.db-actions {
  margin-top: 1.5rem;
  margin-bottom: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-waze {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #33ccff;
  color: #0a0a0a;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-waze:hover {
  opacity: 0.95;
  color: #0a0a0a;
  transform: translateY(-1px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #f87171;
}

/* Database section */
.db-toolbar {
  display: flex;
  gap: var(--space);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input,
.filter-select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9a9a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-inline-end: 2rem;
}

[dir="rtl"] .filter-select {
  background-position: left 0.85rem center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
}

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
  text-align: right;
}

.data-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
}

.data-table tbody tr:hover {
  background: var(--accent-soft);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.contact-cell {
  white-space: nowrap;
  font-size: 0.85rem;
}

.contact-cell a {
  color: var(--accent);
  text-decoration: none;
}

.contact-cell a:hover {
  text-decoration: underline;
}

.waze-cell {
  white-space: nowrap;
}

.waze-link {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  background: #33ccff;
  color: #0a0a0a;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.waze-link:hover {
  opacity: 0.9;
}

.address-cell {
  max-width: 12rem;
  font-size: 0.9rem;
}

.detail-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  margin: 0;
}

/* Community section - Challenges & Goals */
.community-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.community-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space);
  margin-bottom: 1.5rem;
}

.community-add-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.community-add-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.community-form input,
.community-form textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.community-form input::placeholder,
.community-form textarea::placeholder {
  color: var(--text-muted);
}

.community-form textarea {
  resize: vertical;
  min-height: 60px;
}

.community-form .btn {
  margin-top: 0.5rem;
}

.feed-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--text);
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space);
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.feed-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.feed-card--goal.feed-card--achieved {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.feed-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.feed-card--goal .feed-card-badge {
  color: var(--text-muted);
}

.feed-card--achieved .feed-card-badge {
  color: var(--accent);
}

.feed-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.feed-card-desc,
.feed-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.feed-card-achieved {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.btn-achieved {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn-achieved:hover {
  background: var(--accent);
  color: #fff;
}

.feed-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  margin: 0;
}

@media (max-width: 640px) {
  .community-actions {
    grid-template-columns: 1fr;
  }
}

/* Ads section */
.ads-section {
  background: var(--bg-card);
}

.ads-add {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ads-form .form-grid {
  margin-bottom: 1rem;
}

.ads-toolbar {
  margin-bottom: 1rem;
}

.ads-toolbar .filter-select {
  min-width: 200px;
}

.ads-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
}

.ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.ad-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.ad-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.ad-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.ad-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card-contact a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.ad-card-contact a:hover {
  text-decoration: underline;
}

.ads-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  margin: 0;
}

@media (max-width: 640px) {
  .ads-feed {
    grid-template-columns: 1fr;
  }
}

/* Coaches section */
.coaches-section {
  background: var(--bg-card);
}

.section-desc {
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
}

.coach-filters {
  margin-bottom: 1.5rem;
}

.coach-add {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-input);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.coach-add-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.coach-form .form-grid {
  margin-bottom: 1rem;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
}

.coach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.coach-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.coach-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coach-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.like-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.like-btn.liked {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.like-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.like-count {
  min-width: 1.25em;
  text-align: center;
}

.coach-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.coach-specialty {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.coach-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.coach-contact {
  font-size: 0.85rem;
}

.coach-contact a {
  color: var(--accent);
  text-decoration: none;
}

.coach-contact a:hover {
  text-decoration: underline;
}

.coach-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  margin: 0;
}

/* About */
.about-section {
  background: var(--bg-card);
}

.about-content p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  margin: 0.75rem 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

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

/* גילוי נאות - מודל */
.disclosure-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: var(--space);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.disclosure-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.disclosure-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.disclosure-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.disclosure-content {
  margin-bottom: 1.25rem;
}

.disclosure-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.disclosure-close {
  width: 100%;
}

/* כפתור נגישות */
.accessibility-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  border: 2px solid var(--accent-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.accessibility-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.accessibility-icon {
  font-size: 1.5rem;
}

[dir="rtl"] .accessibility-btn {
  right: auto;
  left: 1.25rem;
}

.accessibility-panel {
  position: fixed;
  bottom: 4.5rem;
  right: 1.25rem;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  z-index: 149;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.accessibility-panel[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

[dir="rtl"] .accessibility-panel {
  right: auto;
  left: 1.25rem;
}

.accessibility-panel-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.accessibility-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.accessibility-option {
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  text-align: start;
  transition: background 0.2s, border-color 0.2s;
}

.accessibility-option:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* נגישות: גודל טקסט */
body.acc-text-large {
  font-size: 1.1rem;
}

body.acc-text-xlarge {
  font-size: 1.2rem;
}

body.acc-text-small {
  font-size: 0.9rem;
}

/* נגישות: ניגודיות גבוהה */
body.acc-contrast {
  --text: #fff;
  --text-muted: #ddd;
  --bg-dark: #000;
  --bg-card: #111;
  --border: #555;
}

/* נגישות: קו תחתון לקישורים */
body.acc-underline-links .nav-link,
body.acc-underline-links .waze-link,
body.acc-underline-links .footer-link-btn,
body.acc-underline-links a {
  text-decoration: underline;
}

/* RTL overrides */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .hero-inner {
  text-align: center;
}

[dir="rtl"] .about-content p {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Responsive */
@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
  }

  .nav .nav-link:hover {
    background: var(--accent-soft);
  }

  .nav .nav-dropdown {
    width: 100%;
  }

  .nav .nav-dropdown-panel {
    position: static;
    margin-top: 0.35rem;
    margin-inline-start: 1rem;
    min-width: 0;
    box-shadow: none;
    border: 1px solid var(--border);
    display: none;
  }

  .nav .nav-dropdown-panel[aria-hidden="false"] {
    display: block;
  }

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

  .db-toolbar {
    flex-direction: column;
  }

  .search-input,
  .filter-select {
    min-width: 100%;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

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