/* ===========================
   מגן בסביבה — Global Styles
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:          #0f2a5e;
  --color-bg-dark:     #091a3e;
  --color-surface:     #1a3d7c;
  --color-accent:      #3b82f6;
  --color-accent-dark: #1d4ed8;
  --color-white:       #ffffff;
  --color-text-muted:  #a8c0e8;
  --color-info-bg:     rgba(255, 255, 255, 0.08);
  --color-info-border: rgba(255, 255, 255, 0.18);

  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-btn: 0 4px 18px rgba(59, 130, 246, 0.35);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);

  --font-main: 'Segoe UI', 'Arial Hebrew', 'David', Arial, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  direction: rtl;
  overflow-x: hidden;
}

/* --- Screen System --- */
.screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.screen.hidden {
  display: none;
}

/* ===========================
   מסך 1 — הסבר (Intro)
   =========================== */

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* --- Logo --- */
.logo {
  font-size: 72px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.6));
  animation: pulse-shield 3s ease-in-out infinite;
}

.app-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.6));
  animation: pulse-shield 3s ease-in-out infinite;
}

@keyframes pulse-shield {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.5)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.9)); }
}

/* --- Typography --- */
.app-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-white);
}

.app-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: -12px;
}

/* --- Info Box --- */
.info-box {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: right;
  width: 100%;
}

/* ===========================
   דיסקליימר — Disclaimer
   =========================== */

.disclaimer-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: right;
}

.disclaimer-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.disclaimer-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.disclaimer-intro {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.disclaimer-list li {
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-info-border);
}

.disclaimer-list li strong {
  color: var(--color-white);
}

.disclaimer-consent {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.disclaimer-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.disclaimer-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.disclaimer-checkbox span {
  font-size: 0.95rem;
  font-weight: 600;
}

#disclaimer-enter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===========================
   מסך 2 — בחירת מצב (Mode)
   =========================== */

.mode-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.mode-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ===========================
   כפתורים — Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Primary — "בואו נתחיל" */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover  { background: var(--color-accent-dark); }
.btn-primary:active { transform: scale(0.97); box-shadow: none; }

/* Large — full-width */
.btn-large {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

/* Mode buttons — cards */
.btn-mode {
  width: 100%;
  flex-direction: column;
  gap: 10px;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
}

.btn-mode:hover {
  background: #1f4a92;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-btn);
}

.btn-mode:active {
  transform: scale(0.97);
}

.mode-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.mode-label {
  font-size: 1.15rem;
  font-weight: 700;
}

/* ===========================
   Responsive — tablet+
   =========================== */

@media (min-width: 480px) {
  .app-title     { font-size: 2.4rem; }
  .btn-large     { padding: 20px 28px; font-size: 1.2rem; }
  .mode-buttons  { flex-direction: row; }
  .btn-mode      { flex: 1; padding: 36px 16px; }
}
