/* Plex Server Troubleshooter Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fafafa; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
header { background: #ffffff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 100; }
header h1 { font-size: 1.5rem; margin: 0; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0.5rem 0; }
nav a { font-size: 0.9rem; }
.hero { padding: 2rem 0; text-align: center; background: linear-gradient(135deg, #6c63ff 0%, #5a52d6 100%); color: white; }
.hero h2 { margin-top: 0; }
.problem-selector { margin: 1rem 0; }
.problem-selector label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.problem-selector select { padding: 0.75rem; font-size: 1rem; border-radius: 4px; border: 1px solid #ccc; width: 100%; max-width: 400px; }
.help-text { font-size: 0.9rem; opacity: 0.9; margin-top: 0.5rem; }
section { padding: 2rem 0; }
section h3 { margin-top: 0; color: #222; }
troubleshooting-path, #library-checklist, #network-checker { background: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.status-box { background: #f0f8ff; border-left: 4px solid #0066cc; padding: 1rem; margin: 1rem 0; border-radius: 0 4px 4px 0; }
.port-checker { display: flex; flex-direction: column; gap: 1rem; }
.input-group { display: flex; flex-direction: column; }
.input-group label { font-weight: 500; margin-bottom: 0.5rem; }
.input-group input { padding: 0.75rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
button { background: #0066cc; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
button:hover { background: #0052a3; }
button:disabled { background: #999; cursor: not-allowed; }
.port-info, .reference-grid { margin-top: 1.5rem; }
.port-info ul { padding-left: 1.25rem; }
.port-info li { margin-bottom: 0.5rem; }
.checklist { list-style: none; padding: 0; }
.checklist-item { display: flex; align-items: center; padding: 0.5rem 0; }
.checklist-item input[type="checkbox"] { margin-right: 0.75rem; width: 18px; height: 18px; }
.checklist-item label { cursor: pointer; }
.hidden { display: none; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.ref-card { background: #fff; border-radius: 8px; padding: 1.25rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.ref-card h4 { margin-top: 0; font-size: 1rem; }
.command-block { background: #f5f5f5; padding: 0.75rem; border-radius: 4px; margin-bottom: 0.5rem; font-family: monospace; font-size: 0.9rem; overflow-x: auto; }
.platform-note { font-size: 0.8rem; color: #666; margin-top: 0.25rem; }
#ad-placeholder { min-height: 120px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border-radius: 8px; color: #999; font-size: 0.9rem; margin: 2rem 0; }
footer { background: #222; color: #eee; padding: 1.5rem 0; font-size: 0.9rem; }
footer a { color: #a8d0ff; }
@media (max-width: 600px) { header h1 { font-size: 1.25rem; } .hero h2 { font-size: 1.5rem; } .problem-selector select { font-size: 1rem; } }
@media (max-width: 480px) { nav { flex-direction: column; } .hero { padding: 1.5rem 0; } section { padding: 1.5rem 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;
}
