/* Theme layout packs — colors come from :root CSS variables (branding). */

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.theme-preset-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.theme-preset-card:hover:not(:disabled) {
  border-color: var(--color-primary, #1a56db);
}

.theme-preset-card.is-selected,
.theme-preset-card.is-active {
  border-color: var(--color-primary, #1a56db);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #1a56db) 25%, transparent);
}

.theme-preset-card:disabled,
.theme-preset-card--custom:disabled {
  cursor: default;
  opacity: 0.85;
}

.theme-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary, #1a56db) 12%, #fff);
  color: var(--color-primary, #1a56db);
  vertical-align: middle;
}

/* Atlas — corporate density */
[data-theme="atlas"] .site-header {
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary, #0b2c5f);
}

[data-theme="atlas"] .btn-primary {
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

[data-theme="atlas"] .landing-hero,
[data-theme="atlas"] .page-header {
  padding-block: 2.5rem;
}

[data-theme="atlas"] .public-nav a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Boodle — consumer / airy CTAs */
[data-theme="boodle"] .btn-primary {
  border-radius: 999px;
  padding-inline: 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

[data-theme="boodle"] .landing-hero,
[data-theme="boodle"] .page-header {
  padding-block: 3.25rem;
}

[data-theme="boodle"] .public-nav a {
  font-weight: 500;
}

[data-theme="boodle"] .site-header {
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

/* Creditr — calm cream editorial (page_designs) */
[data-theme="creditr"] .btn-primary,
[data-theme="creditr"] .btn-secondary,
[data-theme="creditr"] .btn-gold {
  border-radius: var(--radius-pill, 999px);
}

[data-theme="creditr"] .page-header h1,
[data-theme="creditr"] .landing-hero h1,
[data-theme="creditr"] .auth-card > h1,
[data-theme="creditr"] .next-action-title {
  font-family: var(--font-display, Georgia, serif);
  letter-spacing: -0.02em;
}

[data-theme="creditr"] .site-header {
  background: color-mix(in srgb, var(--color-bg, #f6f0dc) 70%, #fff);
  border-bottom: 1px solid var(--color-border, rgba(7, 49, 32, 0.12));
  box-shadow: none;
}

[data-theme="creditr"] .card,
[data-theme="creditr"] .section-card,
[data-theme="creditr"] .stat-card,
[data-theme="creditr"] .auth-card {
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 8px 24px rgba(7, 49, 32, 0.06));
}

[data-theme="custom"] .btn-primary {
  border-radius: var(--radius-pill, 999px);
}
