/* =========================================================
   Learning Hero — Unified Design System
   =========================================================
   This is the single source of truth for all styles.
   All pages link to this file.

   Sections:
   01. Variables
   02. Reset & Base
   03. Navbar
   04. Footer (injected + static)
   05. ── HOME PAGE ──
   06. Site Hero
   07. Home Container & Layout
   08. Stats Row
   09. Section Header
   10. Filter Bar
   11. Generator Cards Grid
   12. Home CTA
   13. Home Footer
   14. ── GENERATOR PAGES ──
   15. Generator Container
   16. Generator Header
   17. Info Box
   18. Prompt Methodology
   19. Sections & Section Numbers
   20. Form Elements
   21. Radio & Checkbox Groups
   22. Buttons
   23. Result Box
   24. AI Links Block
   25. Color Picker (image generator)
   26. Loading Spinner
   27. ── ABOUT PAGE ──
   28. About Header
   29. About Content & Sections
   30. Timeline
   31. Skills Grid
   32. Vision Box
   33. Contact CTA
   34. ── SHARED ──
   35. Notifications & Tooltips
   36. Responsive
   37. Accessibility & Print
   ========================================================= */

/* ---------------------------------------------------------
   01. Variables
   --------------------------------------------------------- */
:root {
  /* Accent */
  --accent:        #2563eb;
  --accent-dark:   #1d4ed8;
  --accent-light:  #eff6ff;
  --accent-border: #bfdbfe;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Surfaces */
  --bg:        #f1f5f9;
  --surface:   #ffffff;
  --surface-2: #f8fafc;

  /* Borders & Shadows */
  --border:    #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Legacy aliases — kept for backward compat with any inline references */
  --color-primary:   var(--text-primary);
  --color-secondary: var(--text-secondary);
  --color-border:    var(--border);
  --color-bg:        var(--bg);
  --color-card:      var(--surface);
  --color-card-bg:   var(--surface);
  --color-light-bg:  var(--surface-2);
  --color-accent:    var(--accent);
  --color-accent-dark: var(--accent-dark);
  --color-text:      var(--text-primary);
  --shadow-subtle:   var(--shadow-sm);
  --shadow-medium:   var(--shadow-md);
  --shadow-strong:   var(--shadow-lg);
}

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

body, body *, pre, code { font-family: 'Heebo', sans-serif !important; }

body {
  direction: rtl;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   03. Navbar
   --------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.navbar-logo {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  text-decoration: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}

.navbar-links li a,
.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9em;
  transition: color 0.15s;
}

.navbar-links li a:hover,
.navbar-links a:hover { color: var(--text-primary); }

/* ---------------------------------------------------------
   04. Footer — shared (injected via JS + about/home static)
   --------------------------------------------------------- */
.footer,
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 0;
}

/* JS-injected footer links row */
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9em;
}

.footer-links-label {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-links .sep { color: var(--border); }

/* Homepage static footer */
.footer-ai-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9em;
}

.footer-ai-links span { color: var(--text-muted); font-weight: 500; }
.footer-ai-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-ai-links a:hover { color: var(--text-primary); }
.footer-ai-links .sep { color: var(--border); }

.footer-meta {
  font-size: 0.85em;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

.footer-meta strong {
  font-size: 1em;
  color: var(--text-secondary);
  font-weight: 700;
  display: inline;
}

/* ==========================================================
   05–13. HOME PAGE
   ========================================================== */

/* ---------------------------------------------------------
   06. Site Hero
   --------------------------------------------------------- */
.site-hero {
  padding: 72px 32px 60px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-top: 64px; /* offset fixed navbar */
}

.site-hero h1 {
  font-size: 2.8em;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.site-tagline {
  font-size: 1.15em;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   07. Home Container & Layout
   --------------------------------------------------------- */
.container-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ---------------------------------------------------------
   08. Stats Row
   --------------------------------------------------------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 28px;
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2em;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88em;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   09. Section Header (homepage title above cards)
   --------------------------------------------------------- */
.section-header {
  text-align: center;
  margin: 0 0 28px;
}

.section-header h2 {
  font-size: 1.7em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-header p {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* ---------------------------------------------------------
   10. Filter Bar
   --------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 180px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9em;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  direction: rtl;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }

.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.88em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-btn:hover { border-color: #94a3b8; color: var(--text-primary); }

.filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}

.sort-select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.88em;
  color: var(--text-secondary);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  direction: rtl;
  transition: border-color 0.15s;
}

.sort-select:focus { border-color: var(--accent-border); }

/* ---------------------------------------------------------
   11. Generator Cards Grid
   --------------------------------------------------------- */
#generators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 1em;
  padding: 40px 0;
}

.generator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.generator-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.category-tag {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.category-learning  { background: #dbeafe; color: #1d4ed8; }
.category-guidance  { background: #dcfce7; color: #15803d; }
.category-visual    { background: #fef9c3; color: #92400e; }

.generator-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.generator-description {
  font-size: 0.88em;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------------------------------------------------------
   12. Home CTA Section
   --------------------------------------------------------- */
.cta-section-home {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 52px 40px;
  margin-top: 52px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Also support old class name from index.html */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 52px 40px;
  margin-top: 52px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-section h2,
.cta-section-home h2 {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cta-section p,
.cta-section-home p {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 12px 32px;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--r-md);
  font-size: 0.95em;
  font-weight: 600;
  transition: background 0.15s;
}

.cta-button:hover { background: #1e293b; }

/* ==========================================================
   14–26. GENERATOR PAGES
   ========================================================== */

/* ---------------------------------------------------------
   15. Generator Container
   --------------------------------------------------------- */
.container {
  max-width: 900px;
  margin: 80px auto 35px;
  background: var(--surface);
  padding-bottom: 30px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ---------------------------------------------------------
   16. Generator Header
   --------------------------------------------------------- */
.header {
  background: var(--surface);
  padding: 36px 40px 28px;
  text-align: center;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  border-bottom: 1px solid var(--border);
}

.header-content { position: relative; }

.header h1 {
  font-size: 2em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.header p {
  font-size: 1em;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   17. Info Box
   --------------------------------------------------------- */
.generator-info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 20px 40px;
  border-right: 3px solid var(--accent);
}

.generator-info-box h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.generator-info-box p {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------------------------------------------------------
   18. Prompt Methodology (collapsible)
   --------------------------------------------------------- */
.prompt-methodology {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin: 0 40px 18px;
  overflow: hidden;
}

.prompt-methodology summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  font-size: 0.85em;
  transition: background 0.15s;
  border-radius: var(--r-lg);
}

.prompt-methodology summary:hover { background: #f1f5f9; }

.prompt-methodology[open] > summary {
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: #f1f5f9;
}

.prompt-methodology summary::after {
  content: '▾';
  font-size: 1em;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.prompt-methodology[open] > summary::after { transform: rotate(180deg); }
.prompt-methodology summary::-webkit-details-marker { display: none; }

.methodology-body { padding: 16px 20px; }

.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.technique-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}

.technique-label {
  font-size: 0.7em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.technique-desc { font-size: 0.84em; color: var(--text-secondary); line-height: 1.5; }

.methodology-tip {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 0.84em;
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   19. Sections & Section Numbers
   --------------------------------------------------------- */
.section {
  background: var(--surface);
  padding: 28px 32px;
  margin: 18px 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.section:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.section-title {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.section-number {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.82em;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid var(--accent-border);
}

/* ---------------------------------------------------------
   20. Form Elements
   --------------------------------------------------------- */
.label {
  font-size: 0.92em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.label-subtitle {
  font-size: 0.84em !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  display: block !important;
  margin-top: 4px !important;
}

.input-group { margin-bottom: 20px; }
.input-group:last-child { margin-bottom: 0; }

/* Two-column time + format row */
.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.92em;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:hover, textarea:hover, select:hover { border-color: #94a3b8; }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.09);
  outline: none;
}

textarea { resize: vertical; min-height: 110px; }

.helper-text {
  font-size: 0.82em;
  color: var(--text-secondary);
  margin-top: 7px;
  padding: 7px 11px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border-right: 2px solid var(--border);
}

/* ---------------------------------------------------------
   21. Radio & Checkbox Groups
   --------------------------------------------------------- */
.radio-group,
.checkbox-group,
.radio-group-2col,
.checkbox-group-2col,
.checkbox-group-3col,
.radio-group-3col {
  display: grid;
  gap: 8px;
}

.radio-group            { grid-template-columns: repeat(2, 1fr); }
.checkbox-group-2col,
.radio-group-2col       { grid-template-columns: repeat(2, 1fr); }
.checkbox-group-3col,
.radio-group-3col       { grid-template-columns: repeat(3, 1fr); }

.radio-option,
.checkbox-option {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.radio-option.selected,
.checkbox-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

input[type="radio"],
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

input[type="radio"]:focus,
input[type="checkbox"]:focus { box-shadow: none; border: none; }

input[type="radio"]:checked + *,
input[type="checkbox"]:checked + * { font-weight: 600; }

.option-description {
  font-size: 0.8em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* ---------------------------------------------------------
   22. Buttons
   --------------------------------------------------------- */
.submit-button {
  width: 88% !important;
  display: block !important;
  margin: 28px auto !important;
  padding: 14px !important;
  background: var(--accent) !important;
  color: white !important;
  border: none;
  border-radius: var(--r-md);
  font-size: 1.05em !important;
  font-weight: 700;
  text-align: center !important;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.submit-button:hover  { background: var(--accent-dark) !important; }
.submit-button:active { background: #1e40af !important; }

.copy-button {
  padding: 9px 18px;
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: var(--r-sm);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.85em;
}

.copy-button:hover { background: rgba(255,255,255,0.25); }

.copy-button.success {
  background: #10b981;
  border-color: #10b981;
  animation: successPulse 0.4s ease;
}

@keyframes successPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------
   23. Result Box
   --------------------------------------------------------- */
.result {
  display: none;
  margin: 14px 40px 44px;
}

@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result.show {
  display: block !important;
  animation: resultSlideIn 0.3s ease-out forwards;
}

.result-header {
  background: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result-title {
  color: white;
  font-size: 1em;
  font-weight: 700;
  max-width: 70%;
}

.prompt-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 24px 28px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  max-height: 600px;
  overflow-y: auto;
  font-size: 0.92em;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-output::-webkit-scrollbar { width: 5px; }
.prompt-output::-webkit-scrollbar-track { background: var(--surface-2); }
.prompt-output::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.prompt-output::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ---------------------------------------------------------
   24. AI Links Block (generator pages)
   --------------------------------------------------------- */
.ai-links {
  margin: 28px 40px;
  padding: 24px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  border-top: 3px solid var(--accent);
}

.ai-links h3 { font-size: 1.2em; color: var(--text-primary); margin-bottom: 8px; font-weight: 700; }
.ai-links p  { font-size: 0.95em; color: var(--text-secondary); margin-bottom: 16px; }

.ai-link-button {
  display: inline-block;
  margin: 5px;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.92em;
  transition: background 0.15s;
}

.ai-link-button:hover { background: var(--accent-dark); }

/* ---------------------------------------------------------
   25. Color Picker (image generator)
   --------------------------------------------------------- */
.color-palette-display {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  justify-content: center;
  flex-wrap: wrap;
}

.color-swatch {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
  cursor: pointer;
}

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

.palette-preview-container {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.palette-preview-container h4 { margin-bottom: 10px; font-size: 0.95em; font-weight: 700; color: var(--text-primary); }

.single-color-group { margin-bottom: 16px; }

.label-and-hex { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }

.color-preview-and-hex { display: flex; align-items: center; gap: 10px; }

.color-inputs-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.color-input-wrapper { flex: 1; display: flex; align-items: center; gap: 10px; }

.color-preview-small {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background-color: white;
  cursor: pointer;
  transition: border-color 0.15s;
}

.color-preview-small:hover { border-color: var(--accent); }

.color-display-base { font-weight: 600; font-size: 0.9em; color: var(--text-primary); }

.color-picker-input {
  display: block !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  padding: 0 !important; margin: 0 !important;
  border: none !important; background: transparent !important;
  z-index: -1 !important; pointer-events: none !important;
}

.color-group-separated { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 18px; }

/* ---------------------------------------------------------
   26. Loading Spinner
   --------------------------------------------------------- */
.loading { position: relative; pointer-events: none; opacity: 0.6; }

.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid rgba(37,99,235,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   27–33. ABOUT PAGE
   ========================================================== */

/* Plain max-width wrapper without white card background */
.container-page {
  max-width: 900px;
  margin: 80px auto 50px;
  padding: 0 20px 50px;
}

/* ---------------------------------------------------------
   28. About Header
   --------------------------------------------------------- */
.about-header {
  text-align: center;
  padding: 48px 20px 32px;
}

.about-header h1 {
  font-size: 2.4em;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

.about-header p {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   29. About Content & Sections
   --------------------------------------------------------- */
.about-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
  margin-top: 0;
  margin-bottom: 28px;
}

.about-section { margin-bottom: 44px; }
.about-section:last-child { margin-bottom: 0; }

.about-section h2 {
  font-size: 1.5em;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  font-weight: 800;
}

.about-section p {
  font-size: 1.05em;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-section p:last-child { margin-bottom: 0; }

.about-note {
  background: var(--accent-light);
  border-right: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 1em !important;
  color: var(--text-primary) !important;
  margin-top: 16px;
}

/* ---------------------------------------------------------
   30. Timeline
   --------------------------------------------------------- */
.timeline {
  position: relative;
  padding-right: 40px;
  margin: 24px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-right: 28px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  right: -4px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent-border);
}

.timeline-year { font-weight: 700; color: var(--accent); font-size: 0.9em; }
.timeline-title { font-weight: 700; color: var(--text-primary); font-size: 1.1em; margin: 4px 0; }
.timeline-desc { color: var(--text-secondary); font-size: 0.95em; }

/* ---------------------------------------------------------
   31. Skills Grid
   --------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.skill-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 22px 20px;
  border-radius: var(--r-lg);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.skill-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.skill-card h3 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 1.05em;
  font-weight: 700;
}

.skill-card p { color: var(--text-secondary) !important; font-size: 0.92em; line-height: 1.55; }

/* ---------------------------------------------------------
   32. Vision Box
   --------------------------------------------------------- */
.vision-box {
  background: var(--text-primary);
  color: white;
  padding: 44px 40px;
  border-radius: var(--r-xl);
  text-align: center;
  margin: 28px 0;
}

.vision-box h2 {
  font-size: 1.8em;
  margin-bottom: 16px;
  color: white !important;
  font-weight: 800;
}

.vision-box p {
  font-size: 1.05em;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}

/* ---------------------------------------------------------
   33. Contact CTA (about page)
   --------------------------------------------------------- */
.contact-cta {
  text-align: center;
  padding: 44px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.contact-cta h2 {
  color: var(--text-primary) !important;
  margin-bottom: 14px;
  font-size: 1.7em;
  font-weight: 800;
}

.contact-cta p {
  color: var(--text-secondary) !important;
  font-size: 1em;
  margin-bottom: 24px;
  max-width: 480px;
  line-height: 1.7;
}

.contact-links { display: flex; justify-content: center; width: 100%; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: white !important;
  text-decoration: none !important;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1em;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.contact-link:hover { background: var(--accent-dark); }

/* ==========================================================
   34–37. SHARED / UTILITIES
   ========================================================== */

/* ---------------------------------------------------------
   35. Notifications & Tooltips
   --------------------------------------------------------- */
.notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.88em;
  z-index: 9000;
  animation: resultSlideIn 0.22s ease-out;
  box-shadow: var(--shadow-lg);
}

.notification.success { background: #10b981; color: white; }
.notification.error   { background: #ef4444; color: white; }
.notification.info    { background: var(--accent); color: white; }

[data-tooltip] { position: relative; cursor: help; }

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%; left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #0f172a;
  color: white;
  font-size: 0.8em;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 4px;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ---------------------------------------------------------
   36. Responsive
   --------------------------------------------------------- */

/* Tablet & below */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 16px !important;
    height: auto !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .navbar-logo { font-size: 1.3em !important; }
  .navbar-links { gap: 14px !important; }

  /* Generator container */
  .container { margin: 110px 10px 20px !important; border-radius: var(--r-lg) !important; }
  .header { padding: 24px 16px !important; }
  .header h1 { font-size: 1.65em !important; }
  .section { margin: 12px 10px !important; padding: 18px 14px !important; }
  .generator-info-box { margin: 14px 10px !important; padding: 18px 14px !important; }
  .prompt-methodology { margin: 0 10px 14px !important; }
  .result { margin: 12px 10px 32px !important; }
  .ai-links { margin: 16px 10px !important; padding: 18px 14px !important; }

  /* Time inputs — single column on mobile */
  .time-inputs { grid-template-columns: 1fr !important; }

  /* Radio/checkbox — 2 cols */
  .radio-group,
  .radio-group-2col,
  .radio-group-3col,
  .checkbox-group,
  .checkbox-group-2col,
  .checkbox-group-3col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
  }

  .radio-option, .checkbox-option {
    padding: 9px 8px !important;
    font-size: 0.84em !important;
    min-height: 48px !important;
  }

  .submit-button { font-size: 0.98em !important; padding: 13px !important; width: 95% !important; }

  input, textarea, select { font-size: 16px !important; } /* prevent iOS zoom */

  .result-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .result-title { max-width: 100% !important; font-size: 0.95em !important; }
  .copy-button { width: 100% !important; justify-content: center !important; }
  .prompt-output { padding: 16px !important; font-size: 0.88em !important; }

  /* Home */
  .site-hero { padding: 48px 20px 40px !important; }
  .site-hero h1 { font-size: 2em !important; }
  .site-tagline { font-size: 1em !important; }
  .container-home { padding: 24px 16px 60px !important; }
  #generators-grid { grid-template-columns: 1fr !important; }
  .filter-bar { flex-direction: column !important; align-items: stretch !important; }
  .search-input { width: 100% !important; }
  .cta-section, .cta-section-home { padding: 32px 20px !important; }
  .stats { gap: 10px !important; }
  .stat-item { padding: 14px 20px !important; }

  /* About */
  .about-content { padding: 24px 18px !important; }
  .about-header h1 { font-size: 1.8em !important; }
  .skills-grid { grid-template-columns: 1fr !important; }
  .vision-box { padding: 32px 20px !important; }
  .contact-cta { padding: 32px 16px !important; }

  /* Image generator color picker */
  .color-display-base { display: none !important; }
  .color-preview-and-hex { justify-content: center !important; gap: 8px !important; padding: 8px !important; background: rgba(0,0,0,0.03) !important; border-radius: var(--r-lg) !important; width: 100% !important; }
  .color-preview-small { width: 52px !important; height: 52px !important; }
  .color-palette-display { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 5px !important; padding: 8px !important; }
  .color-swatch { width: 100% !important; height: 46px !important; border-radius: var(--r-sm) !important; }
  .label-and-hex { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 8px !important; }
}

/* Small phones */
@media (max-width: 420px) {
  .site-hero h1 { font-size: 1.7em !important; }
  .header h1 { font-size: 1.4em !important; }
  .radio-group, .radio-group-2col, .radio-group-3col,
  .checkbox-group, .checkbox-group-2col, .checkbox-group-3col {
    grid-template-columns: 1fr !important;
  }
}

/* Footer link separator — hide on very small screens */
@media (max-width: 600px) {
  .footer-ai-links .sep,
  .footer-links .sep { display: none; }
}

/* ---------------------------------------------------------
   37. Accessibility & Print
   --------------------------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

@media (prefers-contrast: high) {
  .container, .section { border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { background: white; }
  .navbar, .cta-section, .cta-section-home, .ai-links,
  .submit-button, .copy-button, .site-hero { display: none !important; }
  .container { box-shadow: none; margin: 0; }
  .section { break-inside: avoid; }
}
