/**
 * Brand Studio (Canva) — Styles
 */

/* ── Filter Chips ── */
.canva-filters {
  margin-bottom: var(--space-xl);
}
.canva-filter-chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
}
.canva-filter-chips::-webkit-scrollbar { display: none; }
.canva-chip {
  padding: var(--space-sm) var(--space-md);
  min-height: 40px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.canva-chip:hover { border-color: var(--fitcom-orange-light); }
.canva-chip.active {
  border-color: var(--fitcom-orange);
  background: var(--fitcom-orange);
  color: white;
  font-weight: 600;
}

/* ── Template Grid ── */
.canva-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ── Template Card ── */
.canva-template-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}
.canva-template-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--fitcom-orange-light);
}

.canva-template-preview {
  height: 180px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}
.canva-template-preview-text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-muted);
}

.canva-template-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.canva-template-name {
  font-size: var(--text-base);
  font-weight: 600;
}
.canva-template-badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.canva-size-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  color: var(--text-tertiary);
  font-weight: 500;
}
.canva-template-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Coming Soon Button ── */
.canva-coming-btn {
  background: var(--bg-primary) !important;
  color: var(--text-muted) !important;
  border: 1px dashed var(--border-default) !important;
  cursor: not-allowed !important;
  font-size: var(--text-sm);
  position: relative;
}
.canva-phase-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--text-muted);
  color: white;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
}

/* ── Brand Colors Grid ── */
.canva-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .canva-colors-grid { grid-template-columns: repeat(2, 1fr); }
}
.canva-color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}
.canva-color-card:hover { background: var(--bg-hover); }
.canva-color-swatch {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.canva-color-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.canva-color-hex {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ── Font Rows ── */
.canva-font-row {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.canva-font-row:last-child { border-bottom: none; }

/* ── Logo Grid ── */
.canva-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 768px) {
  .canva-logo-grid { grid-template-columns: 1fr; }
}
.canva-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.canva-logo-preview {
  width: 100%;
  height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.canva-logo-dark {
  background: var(--fitcom-dark);
  border-color: var(--fitcom-dark);
}

/* ── Workflow Steps ── */
.canva-workflow {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.canva-workflow-step {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
}
.canva-workflow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fitcom-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.canva-workflow-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
