/* ── Design System Helper Styles ──────────────────────────────── */
.ds-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 60px;
}

.ds-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.ds-section-header {
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.ds-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Color Swatches Grid */
.ds-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.ds-color-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.ds-color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.ds-color-swatch {
  height: 90px;
  width: 100%;
  transition: background-color 0.3s;
}

.ds-color-info {
  padding: 12px;
}

.ds-color-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.ds-color-variable {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.ds-color-value {
  font-family: monospace;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* Typography rows */
.ds-typo-table {
  width: 100%;
  border-collapse: collapse;
}

.ds-typo-table th, .ds-typo-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ds-typo-table th {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-typo-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Components Showcase Layout */
.ds-showcase-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.ds-showcase-box.row-layout {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.ds-showcase-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Grid wrappers */
.ds-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ds-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 768px) {
  .ds-grid-2, .ds-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Floating copy toast */
.ds-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-toast.active {
  transform: translateX(-50%) translateY(0);
}

.ds-toast i {
  color: #10b981;
}

/* Code block highlight */
.ds-code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid #334155;
  position: relative;
}

.ds-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.ds-code-copy:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
