/* ═══════════════════════════════════════════
   AI Object Namer — Blender Market Description Style
   Modern Sleek Light Theme · Premium Design
   ═══════════════════════════════════════════ */

:root {
  --bg-color: #f8fafc; /* Clean slate-50 */
  --card-bg: #ffffff;  /* Pure white cards */
  --card-border: #e2e8f0; /* slate-200 */
  --card-hover-border: rgba(255, 102, 0, 0.4);
  --text-primary: #0f172a; /* slate-900 */
  --text-secondary: #475569; /* slate-600 */
  --accent-orange: #e05300; /* Rich Blender Orange for Light BG */
  --accent-purple: #6d28d9; /* Deep Purple */
  --accent-gradient: linear-gradient(135deg, #ff6600 0%, #7c3aed 100%);
  --success-color: #059669;
  --warning-color: #ea580c;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -.025em;
}

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Header ── */
.header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.version-badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.08);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 102, 0, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Section Titles ── */
.section-title {
  margin: 50px 0 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title h2 {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: #e2e8f0;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: var(--accent-orange);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
}

/* ── Feature Cards Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 
              0 0 15px -3px rgba(255, 102, 0, 0.02);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 102, 0, 0.06);
  border: 1px solid rgba(255, 102, 0, 0.12);
  border-radius: 8px;
  color: var(--accent-orange);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Provider Cards ── */
.providers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.provider-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.provider-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.provider-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.provider-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}

.badge-local {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-cloud {
  background: rgba(109, 40, 217, 0.08);
  color: var(--accent-purple);
  border: 1px solid rgba(109, 40, 217, 0.15);
}

/* ── Lists (Ordered & Unordered) ── */
.simple-list {
  list-style: none;
  margin: 16px 0;
}

.simple-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.list-dot {
  color: var(--accent-orange);
  margin-top: 4px;
  flex-shrink: 0;
}

.ordered-list {
  counter-reset: step-counter;
}

.ordered-list li {
  counter-increment: step-counter;
}

.ordered-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: 50%;
  color: var(--accent-orange);
  font-size: 0.75rem;
  font-weight: 700;
}

.ordered-list-title {
  font-weight: 600;
  color: #0f172a;
  margin-right: 4px;
}

/* ── Code blocks ── */
code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
}

/* ── Note Box / Alerts ── */
.note-box {
  background: #fffaf5; /* Warm orange tint */
  border-left: 4px solid var(--warning-color);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin: 30px 0;
  display: flex;
  gap: 16px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.02);
}

.note-icon {
  color: var(--warning-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.note-content {
  font-size: 0.9rem;
  color: #7c2d12;
  line-height: 1.5;
}

.note-content strong {
  color: #431407;
  font-weight: 700;
}

.note-content a {
  color: var(--accent-orange);
  text-decoration: none;
}

.note-content a:hover {
  text-decoration: underline;
}

/* ── Tables ── */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.style-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.style-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.style-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.style-table tr:last-child td {
  border-bottom: none;
}

.style-name {
  font-weight: 700;
  color: #0f172a;
  width: 160px;
}

.style-example {
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent-orange);
}

/* ── Guide Feature Blocks ── */
.guide-block {
  margin-bottom: 32px;
}

.guide-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.guide-block p {
  margin-bottom: 14px;
}

/* Links */
a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 500;
}

a:hover {
  color: #ff6600;
}

/* ── Images ── */
.ui-explanation-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  border: 1px solid var(--card-border);
  display: block;
}
