/* Style specific to Random Color Generator */
@import url("../style.css");

.color-preview-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.15));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.color-hex-large {
  font-family: var(--font-mono, "Courier New", monospace);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.color-subtext {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  transition: color 0.3s ease;
}

.color-values-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .color-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.color-value-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.color-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.color-code-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.color-copy-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.color-copy-mini-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
}

.color-history-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.color-swatch-item {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch-item:hover {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
