/* Film Restoration Damage Diagnosis - Styles */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

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

.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: #a8dadc;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(168, 218, 220, 0.2);
}

.site-nav a[aria-current='page'] {
  background: rgba(168, 218, 220, 0.3);
  font-weight: 600;
}

.intro {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.intro p {
  margin: 0 0 1rem 0;
}

.diagnosis-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

damage-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label,
.form-group legend {
  font-weight: 600;
  color: #2d2d2d;
  font-size: 1rem;
}

select, input[type="range"] {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #333;
  transition: border-color 0.2s;
}

select:focus, input:focus {
  outline: none;
  border-color: #457b9d;
  box-shadow: 0 0 0 2px rgba(69, 123, 157, 0.2);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover {
  background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input[type="range"] {
  width: 100%;
}

.severity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
}

.diagnose-btn {
  background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
}

.diagnose-btn:hover,
.diagnose-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(69, 123, 157, 0.3);
}

.diagnose-btn:active {
  transform: translateY(0);
}

.results-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #457b9d;
  margin-bottom: 2rem;
}

.results-section h2 {
  margin-top: 0;
  color: #1a1a2e;
}

.priority-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.priority-list li {
  background: #fff;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border-left: 4px solid #457b9d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.priority-list li.priority-critical {
  border-left-color: #e63946;
}

.priority-list li.priority-high {
  border-left-color: #f4a261;
}

.priority-list li.priority-medium {
  border-left-color: #457b9d;
}

.priority-list li.priority-low {
  border-left-color: #2a9d8f;
}

.priority-list .priority-label {
  font-weight: 600;
  color: #457b9d;
  margin-bottom: 0.5rem;
  display: block;
}

.cost-estimate {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.cost-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d3557;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.print-btn,
.save-btn,
.share-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.print-btn {
  background: #2a9d8f;
  color: #fff;
}

.save-btn {
  background: #e9c46a;
  color: #333;
}

.share-btn {
  background: #f4a261;
  color: #fff;
}

.print-btn:hover,
.save-btn:hover,
.share-btn:hover {
  opacity: 0.9;
}

.comparison-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

.comparison-section h2 {
  margin-top: 0;
  color: #1a1a2e;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background: #f8f9fa;
}

.tips-section {
  background: #e8f4f8;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #a8dadc;
}

.tips-section h2 {
  margin-top: 0;
  color: #1a1a2e;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

tip-card {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

tip-card h3 {
  margin: 0 0 0.5rem 0;
  color: #457b9d;
  font-size: 1rem;
}

.tip-card p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.last-updated {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin: 1.5rem 0 0 0;
  font-style: italic;
}

.site-footer {
  background: #1a1a2e;
  color: #a8dadc;
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  color: #a8dadc;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  .site-header h1 {
    font-size: 1.4rem;
  }
  
  .site-nav {
    font-size: 0.8rem;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .checkBox-group {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .diagnose-btn {
    width: 100%;
  }
}


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