/* Evil Dead Burn Safety Scanner Styles */
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fdfdfd;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.site-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.site-title {
  margin: 0 0 0.5rem 0;
  font-size: 2.2rem;
  font-weight: 700;
}
.site-tagline {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}
.site-nav {
  margin-top: 1rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
.site-nav a:hover { opacity: 1; }
.scanner-section h2, .hazards-section h2, .examples-section h2, .tips-section h2, .about-section h2 {
  color: #1a1a1a;
  margin-top: 0;
  font-size: 1.5rem;
}
.scanner-ui {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}
.input-panel {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.input-panel fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}
.input-panel legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}
#scene-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}
#custom-scene {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
  margin-bottom: 1rem;
}
#analyze-btn {
  width: 100%;
  padding: 0.85rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#analyze-btn:hover { background: #333; }
#analyze-btn:focus { outline: 2px solid #4a90d9; outline-offset: 2px; }
.results-panel {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-text {
  color: #888;
  text-align: center;
}
.hazards-section, .examples-section, .tips-section, .about-section {
  margin: 2rem 0;
}
.hazards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.hazard-card {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  color: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}
.saved-analyses {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.saved-item {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #4a90d9;
}
.saved-item h3 { margin: 0 0 0.25rem 0; }
.saved-date { color: #666; font-size: 0.85rem; margin: 0 0 0.5rem 0; }
.saved-summary { margin: 0; color: #555; }
#view-all-btn {
  padding: 0.75rem 1.5rem;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}
#view-all-btn:hover { background: #357abd; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tip-card h3 { margin-top: 0; color: #1a1a1a; font-size: 1.1rem; }
.tip-card ul { padding-left: 1.2rem; margin: 0; }
.tip-card li { margin-bottom: 0.35rem; }
.about-section {
  background: #f8f8f8;
  padding: 1.75rem;
  border-radius: 8px;
}
.about-section p, .about-section li { margin-bottom: 1rem; }
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
.site-footer a { color: #4a90d9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .scanner-ui { flex-direction: column; gap: 1rem; }
  .site-title { font-size: 1.8rem; }
  .container { padding: 1rem; }
  .hazard-card { font-size: 0.95rem; padding: 1rem; }
}
@media (max-width: 480px) {
  .site-nav a { margin-right: 0.8rem; }
  .tips-grid { grid-template-columns: 1fr; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
/* Loading and result states */
.loading { opacity: 0.7; pointer-events: none; }
.result-item {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.result-item.low { border-left-color: #28a745; background: #f8fff9; }
.result-item.medium { border-left-color: #ffc107; background: #fff9f0; }
.result-item.high { border-left-color: #dc3545; background: #fff5f5; }
.result-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.copy-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover { background: #e0e0e0; }
.print-card {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  page-break-inside: avoid;
}
.print-card h3 { margin-top: 0; }
.print-card ul { padding-left: 1.2rem; }
.print-card li { margin-bottom: 0.25rem; }
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .site-nav { display: none; }
  .scanner-section { margin-bottom: 0; }
  .container { padding: 0; }
}



/* 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;
}
