﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Fraunces:wght@600&display=swap");

:root {
  --ink: #111827;
  --muted: #6b7280;
  --mint: #fff7de;
  --wave: #f9e7b7;
  --accent: #f1c232;
  --accent-dark: #d19e18;
  --rose: #f1c232;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-height: 100vh;
}

html[lang^="he"] body {
  font-family: Arial, "Segoe UI", sans-serif;
}

html[lang^="he"] h1,
html[lang^="he"] h2,
html[lang^="he"] h3,
html[lang^="he"] h4,
html[lang^="he"] h5,
html[lang^="he"] h6,
html[lang^="he"] .hero-title {
  font-family: Arial, "Segoe UI", sans-serif;
}

#app {
  min-height: 100vh;
}

.shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: "Fraunces", serif;
  margin: 0;
  font-size: 32px;
}

.navbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.navbar a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.navbar a.active {
  background: rgba(241, 194, 50, 0.18);
  border-color: rgba(241, 194, 50, 0.45);
  color: var(--accent-dark);
}

.surface {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card.dim {
  opacity: 0.7;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card .meta {
  color: var(--muted);
  font-size: 14px;
}

button {
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
}

form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.notice {
  padding: 12px 14px;
  background: rgba(241, 194, 50, 0.18);
  border-radius: 12px;
  color: #7c5a00;
}

.waiver-notice {
  display: grid;
  gap: 8px;
}

.waiver-header {
  margin-bottom: 12px;
}

.waiver-form {
  display: grid;
  gap: 20px;
}

.waiver-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.waiver-questions {
  display: grid;
  gap: 10px;
}

.radio-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.radio-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.radio-group label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 3px;
}

.waiver-signature-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.2fr);
  gap: 20px;
  align-items: start;
}

.waiver-checkboxes {
  display: grid;
  gap: 12px;
}

.waiver-signature-block {
  display: grid;
  gap: 12px;
}

.link-button {
  border: none;
  background: none;
  padding: 0 4px;
  color: var(--accent-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.signature-pad {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  height: 160px;
  overflow: hidden;
}

.signature-pad canvas {
  width: 100%;
  height: 160px;
  display: block;
  touch-action: none;
}

.signature-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.signature-hint {
  color: var(--muted);
}

.waiver-signature-block .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waiver-signature-block .form-grid > div {
  min-width: 0;
}

.waiver-card {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .waiver-signature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[dir="rtl"] .waiver-signature-grid .waiver-signature-block {
  order: 1;
}

html[dir="rtl"] .waiver-signature-grid .waiver-checkboxes {
  order: 2;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3000;
}

.modal {
  background: white;
  border-radius: 18px;
  max-width: 760px;
  width: min(760px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  position: relative;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--muted);
  transform-origin: center;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.legal-body h1,
.legal-body h2,
.legal-body h3 {
  margin-top: 18px;
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-body ul {
  padding-left: 18px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 840px) {
  .event-layout {
    grid-template-columns: 1fr;
  }
}

.event-card {
  border-top: 3px solid var(--event-accent, var(--accent));
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-title-block h2 {
  margin: 0;
  font-size: 24px;
}

.event-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.event-highlight {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff8e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-availability {
  font-weight: 600;
  color: var(--slate);
}

.event-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

.event-meta-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.event-meta-item {
  display: grid;
  gap: 4px;
}

.event-meta-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.event-meta-value {
  font-weight: 600;
}

.event-description {
  margin-top: 14px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(241, 194, 50, 0.12);
  padding: 12px;
  border-radius: 12px;
}

.event-auth {
  display: grid;
  gap: 12px;
}

.event-auth form {
  display: grid;
  gap: 8px;
}

.event-auth .login-switch {
  margin: 0;
}

.event-auth button {
  width: 100%;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  color: var(--muted);
}

.pill-live {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.pill-muted {
  background: rgba(148, 163, 184, 0.2);
  color: var(--muted);
}

.plan-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.plan-list h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #ffffff;
}

.plan-name {
  font-weight: 600;
}

.schedule-day {
  margin-bottom: 20px;
  display: grid;
  gap: 12px;
}

.schedule-day-header {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.empty-state {
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

.login-card {
  max-width: 420px;
  margin: 60px auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.login-social {
  display: grid;
  gap: 8px;
}

.login-social-title {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.social-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.social-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.social-icon {
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-switch {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.login-switch button.active {
  background: var(--accent);
  color: white;
}

.hidden {
  display: none;
}

.toast-root {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(220, 252, 231, 0.9);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(254, 226, 226, 0.95);
}

.toast-info {
  border-color: rgba(14, 165, 233, 0.3);
  background: rgba(224, 242, 254, 0.9);
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .shell,
[dir="rtl"] .hero,
[dir="rtl"] .surface {
  text-align: right;
}

[dir="rtl"] .navbar {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

[dir="rtl"] .navbar a {
  text-align: right;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

