/* ============================================
   COLORS PAGE — Full Swatch Showcase
   ============================================ */

/* Hero */
.colors-hero {
  padding: 8rem 3rem 3rem;
  text-align: center;
  position: relative;
}

.colors-hero-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.colors-hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.colors-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filter Bar */
.colors-filter {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem 1rem;
}

.colors-filter-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.colors-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.colors-pill {
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s;
}

.colors-pill:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.colors-pill.active {
  background: var(--accent-gold);
  color: var(--bg-dark);
  border-color: var(--accent-gold);
  font-weight: 600;
}

/* Count Badge */
.colors-count {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 3rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Swatch Grid */
.colors-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* Swatch Card */
.swatch-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.swatch-card:hover {
  transform: scale(1.04);
}

.swatch-color-block {
  height: 160px;
  border-radius: 10px 10px 0 0;
}

.swatch-info {
  background: #1a1712;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
}

.swatch-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.swatch-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
}

.swatch-type {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Modal */
.color-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.color-modal-overlay.open {
  display: flex;
  opacity: 1;
}

.color-modal {
  background: #1a1712;
  border-radius: 14px;
  overflow: hidden;
  width: 90%;
  max-width: 380px;
  animation: modalSlideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.color-modal-preview {
  height: 120px;
  width: 100%;
}

.color-modal-body {
  padding: 1.5rem;
}

.color-modal-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.color-modal-type {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.color-modal-hex {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.color-modal-actions {
  display: flex;
  gap: 0.7rem;
}

.color-modal-btn-primary {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.color-modal-btn-primary:hover {
  background: #d4b88e;
}

.color-modal-btn-close {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}

.color-modal-btn-close:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* Empty State */
.colors-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ── Homepage Featured Colors ── */
.featured-colors {
  padding: 6rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.featured-colors-cta {
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .colors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-colors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .colors-hero {
    padding: 7rem 1.5rem 2rem;
  }
  .colors-filter {
    padding: 1.5rem 1.5rem 0.5rem;
  }
  .colors-count {
    padding: 0.5rem 1.5rem 1rem;
  }
  .colors-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem 3rem;
    gap: 0.8rem;
  }
  .swatch-color-block {
    height: 120px;
  }
  .swatch-name {
    font-size: 0.85rem;
  }
  .featured-colors {
    padding: 4rem 1.5rem;
  }
  .featured-colors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .color-modal {
    max-width: 340px;
  }
}
