/* ChatGPT Device Prep Builder - Styles */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #475569;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Main Layout */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero-subtitle {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.quick-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quick-start .small {
  color: var(--secondary);
  font-size: 0.875rem;
}

/* Buttons */
.primary-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary-btn:hover {
  background-color: var(--primary-dark);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-intro {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

/* Presets */
.presets h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.preset-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.preset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 200px;
}

.preset-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preset-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.preset-card span {
  font-size: 0.75rem;
  color: var(--secondary);
}

/* Forms */
.tech-stack-form, .workflow-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

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

.form-group label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  background-color: white;
  cursor: pointer;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Results Panel */
.results-panel, .roadmap-output {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.results-panel h3, .roadmap-output h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.compatibility-grid, .opportunity-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .compatibility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .opportunity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compatibility-item, .opportunity-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.status-icon {
  font-size: 1.25rem;
  font-weight: bold;
}

.status-icon {
  color: var(--success);
}

.warning .status-icon {
  color: var(--warning);
}

.priority {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
}

.priority.high {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.priority.medium {
  background-color: rgba(100, 116, 139, 0.2);
  color: var(--secondary);
}

.priority.low {
  background-color: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.summary-box, .roadmap-summary {
  background-color: white;
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.workflow-example, .workflow-categories {
  background-color: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.workflow-categories {
  list-style: none;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.workflow-categories li {
  margin-bottom: 0.5rem;
}

/* Roadmap */
.roadmap-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.roadmap-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 500;
}

.roadmap-controls select {
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .roadmap-container {
    flex-direction: row;
    gap: 2rem;
  }
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
}

.phase-tasks {
  list-style: none;
  padding-left: 1rem;
}

.phase-tasks li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.phase-tasks li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.5rem;
}

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

/* Support Content */
.support-content {
  background-color: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.support-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.support-content h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.support-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.support-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.support-content li {
  margin-bottom: 0.5rem;
}

.support-content strong {
  color: var(--text);
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
  color: var(--secondary);
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.version {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Hidden Section */
.hidden-section {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .main {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .preset-cards {
    flex-direction: column;
  }

  .nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .roadmap-container {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }
}

/* Ad Reserve */
#adReserve {
  margin: 2rem auto;
  text-align: center;
}



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