/* ============================================================
   grid-select.css — Grid select interaction styles
   Covers: cards (default), swipe, sticky
   ============================================================ */

/* ── Shared: progress dots ───────────────────────────────────── */

.brand-card-progress {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 8px;
}
.brand-card-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2); transition: all 0.2s;
}
.brand-card-dot.active  { background: var(--teal); transform: scale(1.3); }
.brand-card-dot.done    { background: rgba(0,201,177,0.5); }

/* ── Shared: chips ───────────────────────────────────────────── */

.brand-card-question {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-align: center; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.brand-card-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-bottom: 8px;
}
.brand-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 24px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.18s; user-select: none; touch-action: manipulation;
}
@media (hover: hover) {
  .brand-chip:hover { border-color: rgba(0,201,177,0.5); background: rgba(0,201,177,0.08); }
}
.brand-chip.selected {
  background: rgba(0,201,177,0.2); border-color: var(--teal); color: white;
  box-shadow: 0 0 0 1px rgba(0,201,177,0.3);
}

/* ── Cards style (default) ───────────────────────────────────── */

.brand-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-bottom: 8px;
}
.brand-card-img {
  width: 100%; height: 28vh; max-height: 220px;
  object-fit: contain; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.12);
}
.brand-card-placeholder {
  width: 120px; height: 120px; border-radius: 16px;
  background: rgba(0,201,177,0.15); border: 2px solid rgba(0,201,177,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 700; color: var(--teal);
}
.brand-card-name { font-size: 20px; font-weight: 700; color: white; text-align: center; }
.brand-card-counter {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 1px;
}
.brand-card-nav {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; gap: 10px;
}
.brand-nav-btn {
  padding: 8px 18px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
}
.brand-nav-btn:hover { background: rgba(255,255,255,0.15); }
.brand-nav-next {
  background: var(--teal); border-color: var(--teal); color: white;
  box-shadow: 0 4px 14px rgba(0,201,177,0.3);
}
.brand-nav-next:hover { background: var(--teal-dark); }
.brand-card-done { font-size: 13px; font-weight: 600; color: var(--teal); padding: 8px 18px; }

/* ── Swipe style ─────────────────────────────────────────────── */

.gs-swipe-wrap {
  display: flex; flex-direction: column; gap: 8px;
  user-select: none;
}
.gs-swipe-stage {
  position: relative; width: 100%; height: 220px;
  overflow: hidden; border-radius: 16px;
  cursor: grab;
}
.gs-swipe-stage:active { cursor: grabbing; }
.gs-swipe-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
}
.gs-swipe-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 14px;
}
.gs-swipe-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; color: rgba(0,201,177,0.5);
}
.gs-swipe-card-label {
  position: relative; z-index: 2;
  width: 100%; padding: 24px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 18px; font-weight: 700; color: white; text-align: center;
}

/* Enter/exit animations */
.gs-enter-right { transform: translateX(100%); opacity: 0; }
.gs-enter-left  { transform: translateX(-100%); opacity: 0; }
.gs-exit-left   { transform: translateX(-100%); opacity: 0; }
.gs-exit-right  { transform: translateX(100%); opacity: 0; }

/* Arrow hint buttons */
.gs-swipe-hints {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none; padding: 0 6px; z-index: 3;
}
.gs-hint-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 20px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto;
  transition: background 0.15s; line-height: 1;
}
.gs-hint-btn:hover { background: rgba(0,0,0,0.65); }
.gs-hint-prev { padding-right: 2px; }
.gs-hint-next { padding-left: 2px; }

.gs-chip-tray {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px 12px;
}
.gs-counter {
  font-size: 11px; font-weight: 700;
  text-align: center; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}

/* ── Sticky Note Board ───────────────────────────────────────── */

.gs-sticky-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 4px 0 8px;
}

.gs-sticky {
  position: relative;
  background: var(--sticky-color, #fef08a);
  border-radius: 2px 2px 2px 2px;
  padding: 10px 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow:
    2px 3px 0 rgba(0,0,0,0.15),
    4px 6px 12px rgba(0,0,0,0.2);
  transform: rotate(var(--sticky-tilt, 0deg));
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.gs-sticky:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 4px 8px 20px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Slight random tilt per sticky — set via nth-child */
.gs-sticky:nth-child(odd)  { --sticky-tilt: -1.5deg; }
.gs-sticky:nth-child(even) { --sticky-tilt: 1deg; }
.gs-sticky:nth-child(3n)   { --sticky-tilt: -0.5deg; }

.gs-sticky-pin {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0392b);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  z-index: 2;
}

.gs-sticky-img {
  width: 100%; height: 90px;
  object-fit: contain; border-radius: 4px;
  margin-top: 6px;
}
.gs-sticky-placeholder {
  width: 100%; height: 70px; border-radius: 4px;
  background: rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: rgba(0,0,0,0.25);
  margin-top: 6px;
}

.gs-sticky-label {
  font-size: 13px; font-weight: 800;
  color: rgba(0,0,0,0.75); text-align: center;
  line-height: 1.2;
}

.gs-sticky-divider {
  height: 1px; background: rgba(0,0,0,0.12); margin: 2px 0;
}

.gs-sticky-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
}

.gs-sticky-tag {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.5);
  color: rgba(0,0,0,0.6);
  font-size: 10px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  user-select: none;
}
.gs-sticky-tag:hover { background: rgba(255,255,255,0.8); }
.gs-sticky-tag.selected {
  background: rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.4);
  color: rgba(0,0,0,0.85);
  font-weight: 700;
}
.gs-sticky-tag.selected::before {
  content: '✓ ';
}
.gs-tag-emoji { font-size: 12px; }
