﻿/* Brand color simulator - scoped under .brand-sim-root; dark mode via body.sim-dark */

.brand-sim-root {
  --sim-card-bg: #ffffff;
  --sim-card-border: #cccccc;
  --sim-page-bg: transparent;
  --sim-text: #0b1220;
  --sim-muted-label: #334155;
  --sim-input-bg: #ffffff;
  --sim-input-border: #bbbbbb;
  --action-btn-bg: #336699;
  --action-btn-hover: #5b84ad;
  --action-btn-fg: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

body.sim-dark .brand-sim-root {
  --sim-card-bg: #1a1a1a;
  --sim-card-border: #333333;
  --sim-text: #e0e0e0;
  --sim-muted-label: #dddddd;
  --sim-input-bg: #222222;
  --sim-input-border: #444444;
}

body.sim-dark {
  background-image: none !important;
  background-color: #111111 !important;
  color: #e0e0e0;
}

body.sim-dark .intro.sim-page-intro h1 {
  color: #f8fafc;
}

body.sim-dark .intro.sim-page-intro p {
  color: #cbd5e1;
}

.brand-sim-root .sim-spacer {
  height: 1rem;
}

.brand-sim-root .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 20px;
}

.brand-sim-root .card {
  background: var(--sim-card-bg);
  border: 1px solid var(--sim-card-border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--sim-text);
}

body.sim-dark .brand-sim-root .card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand-sim-root .grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .brand-sim-root .grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.brand-sim-root label {
  font-size: 13px;
  color: var(--sim-muted-label);
  margin-right: 6px;
}

.brand-sim-root select,
.brand-sim-root button {
  padding: 8px 10px;
  border: 1px solid var(--sim-input-border);
  border-radius: 8px;
  background: var(--sim-input-bg);
  color: var(--sim-text);
}

.brand-sim-root button {
  cursor: pointer;
}

.brand-sim-root .swatch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.brand-sim-root .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #999;
}

.brand-sim-root .stack {
  display: grid;
  gap: 16px;
}

.brand-sim-root .sim-brand-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

/* Sample chat */
.brand-sim-root .chat {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 300px;
}

body.sim-dark .brand-sim-root .chat {
  border-color: #333;
}

.brand-sim-root .chat-header {
  padding: 10px;
  color: #fff;
  font-weight: bold;
}

.brand-sim-root .chat-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #fafafa;
}

body.sim-dark .brand-sim-root .chat-body {
  background: #181818;
}

.brand-sim-root .msg {
  max-width: 70%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 12px;
  line-height: 1.35;
}

.brand-sim-root .msg.in {
  margin-right: auto;
  background: #eee;
  color: #222;
}

body.sim-dark .brand-sim-root .msg.in {
  background: #2a2a2a;
  color: #ddd;
}

.brand-sim-root .msg.out {
  margin-left: auto;
  color: #fff;
}

/* Sample link hub */
.brand-sim-root .linkhub {
  --btn-bg: #336699;
  --btn-bg-hover: #5b84ad;
  --btn-fg: #fff;
  --btn-border: #5b84ad;
  --btn-border-hover: #84a3c1;
}

.brand-sim-root .linkhub .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: #fff;
  margin: 0 auto;
  border: 2px solid #fff;
}

.brand-sim-root a.link {
  display: block;
  width: 90%;
  max-width: 400px;
  margin: 0.5rem auto;
  padding: 0.8rem 1rem;
  text-align: center;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-border);
}

.brand-sim-root a.link:hover {
  transform: scale(1.03);
  opacity: 1;
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
}

/* Feature boxes (simulator only) */
.brand-sim-root .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin: 0;
  justify-content: stretch;
}

.brand-sim-root .feature-box {
  flex: initial;
  max-width: none;
  min-width: 0;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem;
  border: 2px solid transparent;
  background: #f9f9f9;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.sim-dark .brand-sim-root .feature-box {
  background: #191919;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.brand-sim-root .feature-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 24px rgba(15, 23, 42, 0.1);
}

.brand-sim-root .feature-box h3 {
  margin: 0.85rem 0 0.45rem;
  min-height: 0;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--sim-feature-heading, var(--sim-text)) !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

.brand-sim-root .feature-box p {
  flex: 1;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

.brand-sim-root .sim-feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-sim-root .sim-feature__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--sim-feature-accent, #336699);
  color: var(--sim-feature-accent-fg, #fff);
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.brand-sim-root .sim-feature__badge {
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--sim-feature-line, rgba(15, 23, 42, 0.14));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sim-feature-heading, var(--sim-text));
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.sim-dark .brand-sim-root .sim-feature__badge {
  background: rgba(255, 255, 255, 0.08);
}

.brand-sim-root .sim-feature__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.48rem 0.72rem;
  border-radius: 6px;
  border: 1px solid var(--sim-feature-accent, #336699);
  background: var(--sim-feature-accent, #336699);
  color: var(--sim-feature-accent-fg, #fff) !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-sim-root .sim-feature__link:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.brand-sim-root .feature-box::after {
  content: "";
  display: block;
  margin-top: 0.9rem;
  padding-top: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

body.sim-dark .brand-sim-root .feature-box::after {
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Album */
.brand-sim-root .album {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.brand-sim-root .polaroid {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 10px;
  transform: rotate(var(--rot, -1.5deg));
}

body.sim-dark .brand-sim-root .polaroid {
  background: #222;
  border-color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.brand-sim-root .photo {
  height: 100px;
  background: #eee;
  display: grid;
  place-items: center;
  font-size: 32px;
  border-radius: 6px;
}

.brand-sim-root .caption {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
}

/* Color table */
.brand-sim-root table {
  border-collapse: collapse;
  width: 100%;
}

.brand-sim-root th,
.brand-sim-root td {
  border: 1px solid #e1e1e1;
  padding: 6px;
  text-align: center;
  font-size: 12px;
}

body.sim-dark .brand-sim-root th,
body.sim-dark .brand-sim-root td {
  border-color: #333;
}

.brand-sim-root .chip {
  width: 60px;
  height: 20px;
  border-radius: 4px;
  margin: 0 auto;
}

/* Login form */
.brand-sim-root .login-form {
  max-width: 320px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.brand-sim-root .login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: var(--sim-input-bg);
  color: var(--sim-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-sim-root .login-form input:focus {
  outline: 0;
  border-color: var(--action-btn-bg);
  box-shadow: 0 0 0 3px var(--action-focus-ring, rgba(51, 102, 153, 0.18));
}

body.sim-dark .brand-sim-root .login-form input {
  background: #1f1f1f;
  border-color: #333;
  color: #eee;
}

.brand-sim-root .login-form button {
  padding: 10px;
  color: var(--action-btn-fg);
  border: 1px solid var(--action-btn-bg);
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  background: var(--action-btn-bg);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.brand-sim-root .login-form button:hover {
  transform: translateY(-1px);
  background: var(--action-btn-hover);
  border-color: var(--action-btn-hover);
  box-shadow: 0 8px 18px var(--action-shadow, rgba(51, 102, 153, 0.18));
}

/* Streams */
.brand-sim-root .profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.brand-sim-root .profile img.icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.brand-sim-root .profile .info h1 {
  margin: 0;
  font-size: 18px;
}

.brand-sim-root .profile .info p {
  margin: 2px 0;
  font-size: 14px;
}

.brand-sim-root .profile .links a {
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  text-decoration: none;
}

.brand-sim-root #posts .post {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
  overflow: auto;
}

body.sim-dark .brand-sim-root #posts .post {
  background: #1e1e1e;
  border-color: #333;
}

.brand-sim-root .post-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  float: left;
  margin-right: 8px;
}

.brand-sim-root .post strong {
  font-size: 14px;
}

.brand-sim-root .post-text {
  font-size: 14px;
}

.brand-sim-root .post-actions {
  margin-top: 6px;
  font-size: 12px;
}

.brand-sim-root .comments {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid #ddd;
}

body.sim-dark .brand-sim-root .comments {
  border-color: #333;
}

.brand-sim-root .comment {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.brand-sim-root .comment-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.brand-sim-root .comment-body {
  flex: 1;
}

.brand-sim-root .card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--sim-text);
}

.brand-sim-root .theme-doc-card {
  display: grid;
  gap: 16px;
}

.brand-sim-root .theme-doc-card__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.brand-sim-root .theme-doc-card__head p {
  margin: 0;
  color: #64748b;
}

.brand-sim-root .theme-doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.brand-sim-root .theme-doc-card__actions button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--action-btn-fg);
  border: 1px solid var(--action-btn-bg);
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  background: var(--action-btn-bg);
  box-shadow: 0 8px 18px var(--action-shadow, rgba(51, 102, 153, 0.12));
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.brand-sim-root .theme-doc-card__actions button + button {
  color: var(--action-btn-bg);
  background: #ffffff;
}

.brand-sim-root .theme-doc-card__actions button:hover {
  transform: translateY(-1px);
  color: var(--action-btn-fg);
  background: var(--action-btn-hover);
  border-color: var(--action-btn-hover);
}

.brand-sim-root .theme-doc-output {
  max-height: 520px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #111827;
  border: 1px solid var(--sim-feature-line, #d9e2ec);
  border-radius: 8px;
  background: #f8fafc;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

body.sim-dark .brand-sim-root .theme-doc-card__head p {
  color: #cbd5e1;
}

body.sim-dark .brand-sim-root .theme-doc-card__actions button + button {
  color: var(--action-btn-fg);
  background: #1e1e1e;
}

body.sim-dark .brand-sim-root .theme-doc-output {
  color: #eeeeee;
  background: #161616;
  border-color: #333333;
}

@media (max-width: 680px) {
  .brand-sim-root .theme-doc-card__head {
    display: grid;
  }

  .brand-sim-root .theme-doc-card__actions {
    justify-content: stretch;
  }

  .brand-sim-root .theme-doc-card__actions button {
    flex: 1 1 180px;
  }
}


