/* Brand Colour Widget — frontend styles */

.bcw-root {
  font-family: 'DM Sans', sans-serif;
  background: #0D0D0D;
  color: #F5F0E8;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
}

/* Header */
.bcw-widget-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: #F5F0E8;
  margin: 0 0 8px;
  line-height: 1.1;
}

.bcw-widget-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 32px;
  line-height: 1.65;
  max-width: 600px;
}

/* Grid */
.bcw-grid {
  display: grid;
  gap: 16px;
}

/* Card */
.bcw-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease;
  position: relative;
}

.bcw-card:hover {
  border-color: #444;
  transform: translateY(-3px);
}

/* Swatch strip */
.bcw-card-top {
  height: 72px;
  display: flex;
  align-items: stretch;
}

.bcw-swatch {
  flex: 1;
  transition: flex 0.3s ease;
  cursor: default;
}

.bcw-swatch:hover {
  flex: 1.6;
}

/* Card body */
.bcw-card-body {
  padding: 18px 18px 20px;
}

.bcw-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: #888;
  margin-bottom: 9px;
}

.bcw-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.bcw-hex-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bcw-hex-pill {
  font-size: 10px;
  color: #555;
  background: #1a1a1a;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.bcw-desc {
  font-size: 12.5px;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

/* Empty state */
.bcw-empty {
  text-align: center;
  padding: 48px 24px;
  color: #444;
  font-size: 14px;
  border: 1px dashed #222;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .bcw-root {
    padding: 24px 20px;
  }
  .bcw-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .bcw-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
