/* components.css */

/* Buttons */
.start-button, .action-button {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-size: clamp(2cqh, 2.5cqw, 4cqh);
  padding: 1.5cqh 3cqw;
  border-radius: 3cqh;
  box-shadow: 0 0.5cqh 1cqh var(--color-shadow);
  text-align: center;
  font-weight: bold;
}

.start-button {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
}

/* Text Panels */
.text-panel {
  background-color: var(--color-panel-bg);
  padding: 2cqh 3cqw;
  border-radius: 2cqh;
  box-shadow: 0 0.5cqh 1.5cqh var(--color-shadow);
  font-size: clamp(2cqh, 2cqw, 3cqh);
  text-align: center;
  border: max(0.2cqw, 2px) solid var(--color-primary);
}

.instruction-panel {
  background-color: var(--color-secondary);
  color: var(--color-text-dark);
  font-weight: bold;
}

/* Banners (Modal) */
.modal-banner {
  background-color: var(--color-banner-bg);
  border-radius: 3cqh;
  box-shadow: 0 1cqh 3cqh rgba(0,0,0,0.5);
  border: max(0.4cqw, 3px) solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3cqh 4cqw;
  text-align: center;
  z-index: var(--z-banner);
}

.modal-banner.hidden {
  display: none;
}

.modal-banner h2 {
  font-size: clamp(3cqh, 3.5cqw, 5cqh);
  margin-bottom: 2cqh;
  color: var(--color-accent);
}

.modal-banner p {
  font-size: clamp(2cqh, 2cqw, 3cqh);
  margin-bottom: 3cqh;
}

/* Thought Clouds */
.thought-cloud {
  position: absolute;
  background-color: white;
  border-radius: 5cqh;
  padding: 1cqh 1.5cqw;
  box-shadow: 0 0.5cqh 1cqh var(--color-shadow);
  display: flex;
  align-items: center;
  gap: 0.5cqw;
  font-size: clamp(1.5cqh, 1.5cqw, 2.5cqh);
  font-weight: bold;
  z-index: var(--z-thought-clouds);
  opacity: 0;
  pointer-events: none;
  /* Cloud shape trick using border-radius and pseudo elements */
}
.thought-cloud::before,
.thought-cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
  z-index: -1;
}
.thought-cloud::before {
  width: 4cqh;
  height: 4cqh;
  top: -1.5cqh;
  left: 2cqw;
}
.thought-cloud::after {
  width: 3cqh;
  height: 3cqh;
  top: -1cqh;
  right: 1.5cqw;
}

/* Candidates */
.candidate-slot {
  cursor: pointer;
  transition: transform 0.2s;
}

.candidate-slot:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 1cqw rgba(255,255,255,0.4));
}

.candidate-slot:active {
  transform: scale(0.95);
}

.candidate-name-label {
  position: absolute;
  bottom: -4cqh;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 0.5cqh 1cqw;
  border-radius: 1cqh;
  font-size: clamp(1.5cqh, 1.5cqw, 2cqh);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
