/* TileForge Studio — Integration Styles (Auth, PixelLab, Engine Export, GitHub) */

/* ---- Auth Indicator ---- */
.auth-indicator {
  cursor: pointer;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-subtle);
  white-space: nowrap;
  margin-left: auto;
  transition: background 0.15s;
}

.auth-indicator:hover {
  background: var(--accent);
  color: #fff;
}

.auth-indicator.signed-in {
  color: var(--success);
  background: rgba(63, 185, 80, 0.12);
}

.auth-indicator.signed-in:hover {
  background: var(--success);
  color: #fff;
}

/* ---- Auth Dialog ---- */
.auth-error {
  font-size: 12px;
  color: var(--warning);
  min-height: 18px;
  margin: 4px 0;
}

.auth-toggle {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}

.auth-toggle-link {
  color: var(--accent);
  text-decoration: none;
}

.auth-toggle-link:hover {
  text-decoration: underline;
}

/* ---- Tier Badges ---- */
.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-free {
  background: rgba(125, 133, 144, 0.2);
  color: var(--text-dim);
}

.tier-plus {
  background: rgba(74, 158, 255, 0.15);
  color: var(--accent);
}

.tier-pro {
  background: rgba(255, 180, 50, 0.15);
  color: #ffb432;
}

/* ---- PixelLab ---- */
.pixellab-status {
  font-size: 11px;
  min-height: 16px;
  margin: 8px 0;
}

/* ---- Engine Export ---- */
.engine-export-dialog {
  min-width: 520px;
  max-width: 620px;
}

.engine-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.engine-tab {
  padding: 5px 14px;
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-family: var(--font);
}

.engine-tab:hover {
  color: var(--text);
  background: var(--bg-panel-alt);
}

.engine-tab.active {
  color: var(--accent);
  background: var(--bg-dark);
  border-bottom-color: var(--bg-dark);
}

.engine-code-area {
  position: relative;
}

.engine-code {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0 4px 4px 4px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-x: auto;
  max-height: 320px;
  white-space: pre;
  color: var(--text);
  tab-size: 2;
}

.engine-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ---- GitHub File List ---- */
.github-file-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-dark);
}

.github-file-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.github-file-item:last-child {
  border-bottom: none;
}

.github-file-item:hover {
  background: var(--accent-subtle);
}

.github-file-item.dir {
  color: var(--text-dim);
  cursor: default;
}

/* ---- GitHub Status Indicator ---- */
.github-status {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}

.github-status.connected {
  color: var(--success);
}

/* ---- About Dialog ---- */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.about-dialog {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px 24px;
  min-width: 340px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.about-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.about-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.about-title {
  font-family: var(--font-heading, 'Cinzel', serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent, #d4a04a);
}

.about-version {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.about-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}

.about-body p {
  margin: 0 0 10px;
}

.about-credit {
  font-size: 12px;
  color: var(--text-dim);
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.about-links a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.about-links a:hover {
  text-decoration: underline;
}

.about-close {
  display: block;
  width: 100%;
  padding: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.about-close:hover {
  opacity: 0.85;
}
