﻿/* ==========================================================================
   Taharah Board - Modern Showcase Stylesheet
   Theme: Light / Dark / System (Auto)
   ========================================================================== */

:root {
  /* System default / Light theme fallback */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-pill: #e2e8f0;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-contrast: #ffffff;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);
  
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  
  --success: #16a34a;
  --success-light: #f0fdf4;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-cta: 0 10px 25px -5px rgba(37, 99, 235, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme overrides (either explicitly set or via system preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg-body: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1a2234;
    --bg-muted: #1e293b;
    --bg-pill: #1f293d;
    --border: #1e293b;
    --border-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-contrast: #ffffff;
    --primary-light: rgba(59, 130, 246, 0.12);
    --primary-glow: rgba(59, 130, 246, 0.3);
    
    --accent: #38bdf8;
    --accent-light: rgba(56, 189, 248, 0.12);
    
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.12);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.45);
    --shadow-cta: 0 10px 30px -5px rgba(59, 130, 246, 0.4);
  }
}

:root[data-theme=dark] {
  --bg-body: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-muted: #1e293b;
  --bg-pill: #1f293d;
  --border: #1e293b;
  --border-hover: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-contrast: #ffffff;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-glow: rgba(59, 130, 246, 0.3);
  
  --accent: #38bdf8;
  --accent-light: rgba(56, 189, 248, 0.12);
  
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.12);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.45);
  --shadow-cta: 0 10px 30px -5px rgba(59, 130, 246, 0.4);
}

:root[data-theme=light] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-pill: #e2e8f0;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-contrast: #ffffff;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);
  
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  
  --success: #16a34a;
  --success-light: #f0fdf4;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-cta: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans Hebrew, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

.svg-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.svg-icon.filled {
  fill: currentColor;
  stroke: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(var(--bg-surface), 0.85);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn .svg-icon {
  width: 16px;
  height: 16px;
}

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

.theme-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.hero {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, var(--primary-light) 0%, transparent 65%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-badge .svg-icon {
  width: 15px;
  height: 15px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.download-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.btn-download-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1.1rem 1.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--primary-contrast);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.45);
}

.btn-download-primary:active {
  transform: translateY(1px);
}

.btn-download-primary .svg-icon {
  width: 26px;
  height: 26px;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-meta .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
}

.download-secondary-links {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.secondary-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.secondary-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.secondary-link .svg-icon {
  width: 15px;
  height: 15px;
}

.features-section {
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper .svg-icon {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.specs-section {
  max-width: 850px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.specs-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-container {
  max-width: 860px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}

.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.page-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.page-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.85rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.content-card h2:first-of-type {
  margin-top: 0;
}

.content-card p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.content-card ul {
  margin: 0.75rem 1.75rem 1.25rem 0;
  color: var(--text-secondary);
}

.content-card li {
  margin-bottom: 0.5rem;
}

.content-card strong {
  color: var(--text-primary);
}

.notice-box {
  background: var(--primary-light);
  border-right: 4px solid var(--primary);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  color: var(--text-primary);
}

.en-section {
  direction: ltr;
  text-align: left;
  margin-top: 3rem;
  border-top: 2px dashed var(--border);
  padding-top: 2rem;
}

.en-section ul {
  margin: 0.75rem 0 1.25rem 1.75rem;
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .hero {
    padding: 3rem 1rem 2.5rem;
  }
  .download-box {
    padding: 1.5rem 1.25rem;
  }
  .btn-download-primary {
    font-size: 1.05rem;
    padding: 0.95rem 1.25rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .specs-card {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
  .content-card {
    padding: 1.5rem;
  }
}
