/* EBRA Group Rides Index Page — matches local page design system */
:root {
  --bg: #f5f5f5;
  --bg2: #ffffff;
  --accent: #2e7d32;
  --accent-dark: #1b5e20;
  --accent-light: #c8e6c9;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e8e8e8;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 14px rgba(0,0,0,0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 760px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.header-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.header-logo { height: 36px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumb-link { color: var(--accent-dark); font-weight: 500; }
.breadcrumb-sep { color: #bbb; }
.breadcrumb-current { color: var(--muted); }
.btn-join {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 8px;
  transition: background 0.15s;
}
.btn-join:hover { background: var(--accent-dark); text-decoration: none; }

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(160deg, #1b5e20 0%, #2e7d32 55%, #388e3c 100%);
  color: #fff;
  padding: 32px 16px 28px;
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.page-subtitle { font-size: 0.97rem; opacity: 0.88; }
.page-subtitle a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 3px; }

/* ── Main ── */
.main { padding: 24px 16px 48px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

/* ── Rides list ── */
.rides-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Ride card ── */
.ride-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.15s, transform 0.1s;
}
.ride-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-1px); }
.ride-card[data-hidden="true"] { display: none; }

.ride-card-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: #eef4ee;
  border-radius: var(--radius-sm);
  padding: 8px 4px;
}
.ride-card-month { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); }
.ride-card-day { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); line-height: 1; }

.ride-card-body { flex: 1; min-width: 0; }
.ride-card-header { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.ride-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.status-scheduled { background: #eef4ee; color: var(--accent-dark); }
.status-active    { background: #fef3c7; color: #92400e; }
.status-ended     { background: #f3f4f6; color: #9ca3af; }

.ride-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.ride-card-name a { color: var(--text); }
.ride-card-name a:hover { color: var(--accent-dark); text-decoration: none; }

.ride-card-meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; }

.ride-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ride-card-time { font-size: 0.86rem; color: var(--muted); }

.btn-view {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-view:hover { background: var(--accent-dark); text-decoration: none; }

/* ── Empty state ── */
.no-rides {
  text-align: center;
  color: var(--muted);
  font-size: 0.97rem;
  padding: 48px 0;
}
.no-rides-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── Join CTA ── */
.join-cta-section {
  background: #eef4ee;
  border-top: 1px solid #c8e6c9;
  margin-top: 32px;
}
.join-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.join-cta-heading { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; }
.join-cta-sub { font-size: 0.92rem; color: var(--muted); max-width: 440px; }
.btn-cta-green {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-cta-green:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,125,50,0.25); text-decoration: none; }

/* ── Footer ── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 16px;
}
.footer-logo-img { height: 60px; width: auto; display: block; margin: 0 auto 12px; }
.site-footer p { font-size: 0.8rem; color: #888; }
.site-footer a { color: var(--accent-dark); }
