/* Analog Recording Gear Value Ranker Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fafafa; } 
a { color: #2563eb; text-decoration: none; } 
a:hover { text-decoration: underline; }
header { background: #1a1a2e; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 1.25rem; font-weight: 600; }
nav a { margin-left: 1.5rem; font-size: 0.9rem; opacity: 0.9; }
nav a:hover { opacity: 1; }
main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; }
.hero h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.hero p { opacity: 0.95; margin-bottom: 1rem; }
.preset-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.preset-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.preset-btn:hover { background: rgba(255,255,255,0.3); }
.ranker-section, .add-section, .results-section { background: white; padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.ranker-section h3, .add-section h3, .results-section h3 { margin-bottom: 1rem; color: #1a1a2e; }
.gear-list { display: flex; flex-direction: column; gap: 1rem; }
.gear-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; background: #f9fafb; transition: all 0.2s; }
.gear-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.gear-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.gear-name { font-weight: 600; color: #1a1a2e; }
.gear-score { background: #2563eb; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; }
.gear-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.detail-row { display: flex; flex-direction: column; gap: 0.25rem; }
.detail-row label { font-size: 0.8rem; color: #6b7280; }
.detail-row input { padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.9rem; }
.detail-row input:focus { outline: 2px solid #3b82f6; border-color: #3b82f6; }
.gear-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.edit-btn, .delete-btn { padding: 0.35rem 0.75rem; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.edit-btn { background: #3b82f6; color: white; border: none; }
.delete-btn { background: #ef4444; color: white; border: none; }
#add-gear-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.25rem; }
.form-row label { font-size: 0.8rem; color: #6b7280; }
.form-row input { padding: 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.95rem; }
.add-btn { background: #2563eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 6px; cursor: pointer; font-size: 1rem; font-weight: 500; margin-top: 1rem; grid-column: 1 / -1; }
.add-btn:hover { background: #1d4ed8; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.summary-card { background: #f0f4ff; padding: 1.25rem; border-radius: 8px; text-align: center; }
.summary-value { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.25rem; }
.summary-label { font-size: 0.85rem; color: #475569; }
.export-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.export-actions button { background: #f3f4f6; border: 1px solid #d1d5db; padding: 0.6rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.export-actions button:hover { background: #e5e7eb; }
.usage-guide { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.usage-guide h2 { margin-bottom: 1rem; color: #1a1a2e; }
.usage-guide h3 { margin: 1.25rem 0 0.75rem; color: #2563eb; font-size: 1rem; }
.usage-guide p { margin-bottom: 0.75rem; color: #374151; }
footer { text-align: center; padding: 1.5rem; margin-top: 2rem; color: #6b7280; font-size: 0.9rem; }
footer a { opacity: 0.9; }
@media (max-width: 768px) {
  header { flex-direction: column; text-align: center; }
  nav a { margin: 0 0.5rem; }
  main { padding: 1rem; }
  .hero { padding: 1.5rem; }
  .gear-details { grid-template-columns: 1fr; }
  #add-gear-form { grid-template-columns: 1fr; }
  .export-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h2 { font-size: 1.5rem; }
  .gear-header { flex-direction: column; gap: 0.5rem; }
}


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