/* Personal Repair Skill Tracker Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: #f8f9fa; color: #333; line-height: 1.6; } 
a { color: #2563eb; text-decoration: none; } a:hover { text-decoration: underline; }

.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem; }
.site-header h1 { margin: 0; font-size: 1.5rem; font-weight: 700; color: #1f2937; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; background: #333; margin: 4px 0; transition: 0.3s; }

.site-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: #4b5563; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: #2563eb; }

.site-main { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

.hero-section { text-align: center; padding: 2rem 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 2rem; }
.tagline { font-size: 1.25rem; color: #4b5563; margin-bottom: 1.5rem; }
.quick-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.action-btn { padding: 0.75rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.action-btn.primary { background: #2563eb; color: white; }
.action-btn.primary:hover { background: #1d4ed8; }
.action-btn.secondary { background: #f3f4f6; color: #374151; }
.action-btn.secondary:hover { background: #e5e7eb; }

.repair-form { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.repair-form h2 { margin-top: 0; color: #1f2937; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #374151; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; }
.form-group textarea { resize: vertical; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 150px; }
.form-actions { display: flex; gap: 1rem; margin-top: 1rem; }
.submit-btn { background: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-weight: 500; }
.submit-btn:hover { background: #1d4ed8; }
.cancel-btn { background: #f3f4f6; color: #374151; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; }
.cancel-btn:hover { background: #e5e7eb; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stat-value { font-size: 2rem; font-weight: 700; color: #2563eb; }
.stat-label { font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem; }

.suggestions-section { background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.suggestions-list { list-style: none; padding: 0; margin: 0; }
.suggestions-list li { padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; }
.suggestions-list li:last-child { border-bottom: none; }

.skills-section { margin-bottom: 2rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.skill-card { background: white; padding: 1rem; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.skill-card h4 { font-size: 0.875rem; margin: 0 0 0.5rem 0; color: #374151; }
.skill-level { font-size: 0.875rem; font-weight: 500; }
.skill-level.novice { color: #6b7280; }
.skill-level.beginner { color: #f59e0b; }
.skill-level.competent { color: #10b981; }
.skill-level.expert { color: #2563eb; }

.examples-section { margin-bottom: 2rem; }
.example-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.example-card { background: white; padding: 1.25rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.example-card h4 { margin-top: 0; font-size: 1rem; color: #1f2937; }
.example-card ul { padding-left: 1.25rem; margin: 0.5rem 0 0 0; }
.example-card li { margin-bottom: 0.25rem; }

.history-section { margin-bottom: 2rem; }
.history-controls { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.export-btn, .print-btn, .share-btn { padding: 0.5rem 1rem; border: 1px solid #d1d5db; border-radius: 6px; background: white; cursor: pointer; font-size: 0.875rem; }
.export-btn:hover, .print-btn:hover, .share-btn:hover { background: #f3f4f6; }
.history-list { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.history-item { padding: 1rem; border-bottom: 1px solid #f3f4f6; }
.history-item:last-child { border-bottom: none; }
.history-date { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.25rem; }
.history-item h5 { margin: 0 0 0.5rem 0; font-size: 1rem; }
.history-outcome { display: inline-block; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.outcome-success { background: #dcfce7; color: #065f46; }
.outcome-partial { background: #fef3c7; color: #92400e; }
.outcome-failed { background: #fee2e2; color: #991b1b; }
.history-notes { font-size: 0.875rem; color: #6b7280; margin-top: 0.5rem; }

.guide-section { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.guide-section h2 { margin-top: 0; color: #1f2937; }
guide-section h3 { font-size: 1.125rem; margin-top: 1.5rem; color: #374151; }
guide-section p, guide-section li { margin-bottom: 0.75rem; }
.guide-section ul, guide-section ol { padding-left: 1.5rem; }

.empty-state { text-align: center; color: #6b7280; padding: 2rem; font-style: italic; }

.site-footer { background: #1f2937; color: #d1d5db; padding: 1.5rem 0; margin-top: 2rem; }
.footer-content { text-align: center; }
.footer-note { margin: 0 0 0.5rem 0; }
.footer-meta { font-size: 0.875rem; }

.ad-reserve { text-align: center; padding: 1rem; }

@media (max-width: 768px) {
  .header-container { flex-direction: column; align-items: flex-start; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .form-row { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { flex-direction: column; align-items: center; }
  .action-btn { width: 100%; max-width: 300px; }
  .history-controls { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-main { padding: 1rem; }
  .repairs-form { padding: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .guide-section { padding: 1rem; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
