/* ============================================
   SWIPE MODE STYLES - POLISHED VERSION
   Tinder-style card swiping interface
   Bolder, more solid design
   ============================================ */

.swipe-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  min-height: 550px;
  position: relative;
  user-select: none;
}

/* Fullscreen wrapper adjustments */
.swipe-mode-fullscreen-body {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.swipe-mode-fullscreen-body .swipe-mode {
  flex: 1;
  min-height: 0;
  padding: 16px;
}

/* Loading & Empty States */
.swipe-mode--loading,
.swipe-mode--empty {
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.swipe-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #9747ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.swipe-mode--empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.swipe-mode--empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.swipe-mode--empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* Restart Button - Solid with gradient */
.swipe-restart-btn {
  margin-top: 24px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #9747ff 0%, #7c3aed 100%);
  border: none;
  border-radius: 28px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(151, 71, 255, 0.4);
}

.swipe-restart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(151, 71, 255, 0.6);
}

/* Progress Bar - More visible */
.swipe-progress {
  width: 100%;
  max-width: 350px;
  margin-bottom: 16px;
}

.swipe-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.swipe-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9747ff, #b9ff66);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(151, 71, 255, 0.5);
}

.swipe-progress-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  display: block;
  font-weight: 600;
}

/* Card Stack */
.swipe-card-stack {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 450px;
  perspective: 1000px;
}

/* Card Base - Solid, bolder */
.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  cursor: grab;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  will-change: transform;
}

.swipe-card:active {
  cursor: grabbing;
}

.swipe-card--next {
  cursor: default;
  z-index: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(10px);
  filter: brightness(0.7);
}

.swipe-card:not(.swipe-card--next) {
  z-index: 1;
}

/* Card Content */
.swipe-card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.swipe-card-image {
  flex: 1;
  overflow: hidden;
  background: #1a1a1a;
}

.swipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.swipe-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.3;
}

/* Card Info Overlay - More dramatic gradient */
.swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%
  );
}

/* Grade Badge - Bolder */
.swipe-card-grade {
  display: inline-block;
  background: #9747ff;
  color: white;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(151, 71, 255, 0.4);
}

/* Name - Larger, bolder */
.swipe-card-name {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.swipe-card-setter {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.swipe-card-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.swipe-card-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.swipe-card-stats .stat.active {
  color: #9747ff;
}

/* Direction Indicators - Much bolder with glow */
.swipe-indicator {
  position: absolute;
  z-index: 10;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.swipe-indicator--left {
  top: 50px;
  left: 20px;
  background: #ff4d6d;
  color: white;
  border: 3px solid #ff6b6b;
  transform: rotate(-15deg);
  text-shadow: 0 0 20px rgba(255, 77, 109, 0.8);
}

.swipe-indicator--right {
  top: 50px;
  right: 20px;
  background: #b9ff66;
  color: #1a1a1a;
  border: 3px solid #a3e635;
  transform: rotate(15deg);
  font-weight: 900;
}

.swipe-indicator--up {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #9747ff;
  color: white;
  border: 3px solid #a855f7;
  text-shadow: 0 0 20px rgba(151, 71, 255, 0.8);
}

/* Like Animation - Bigger, more dramatic */
.swipe-like-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 150px;
  z-index: 100;
  animation: likePopup 0.8s ease-out forwards;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(255, 77, 109, 0.8));
}

@keyframes likePopup {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Hints - More visible */
.swipe-hints {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 350px;
  margin-top: 24px;
  padding: 0 24px;
}

.hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.hint-icon {
  font-size: 20px;
  font-weight: 700;
}

.hint--left .hint-icon { color: #ff4d6d; }
.hint--right .hint-icon { color: #b9ff66; }
.hint--up .hint-icon { color: #9747ff; }

/* Action Buttons - Solid fills with gradients */
.swipe-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.swipe-btn:hover {
  transform: scale(1.15);
}

.swipe-btn:active {
  transform: scale(0.95);
}

/* Skip Button - Solid red gradient */
.swipe-btn--skip {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4d6d 100%);
  color: white;
}

.swipe-btn--skip:hover {
  box-shadow: 0 6px 24px rgba(255, 77, 109, 0.5);
}

/* SEND BUTTON - VERDE ACIDO (Rumble Green) - PROMINENT */
.swipe-btn--send {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #d4ff70 0%, #b9ff66 50%, #a3e635 100%);
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 900;
}

.swipe-btn--send:hover {
  box-shadow: 0 8px 32px rgba(185, 255, 102, 0.6);
}

/* Wishlist Button - Purple gradient */
.swipe-btn--wishlist {
  background: linear-gradient(135deg, #a78bfa 0%, #9747ff 100%);
  color: white;
}

.swipe-btn--wishlist:hover {
  box-shadow: 0 6px 24px rgba(151, 71, 255, 0.5);
}

/* ==========================================
   Mobile Optimizations
   ========================================== */

@media (max-width: 400px) {
  .swipe-mode {
    padding: 12px;
    min-height: 480px;
  }

  .swipe-card-stack {
    max-width: 300px;
    height: 380px;
  }

  .swipe-card-name {
    font-size: 20px;
  }

  .swipe-card-grade {
    padding: 6px 14px;
    font-size: 14px;
  }

  .swipe-indicator {
    padding: 12px 20px;
    font-size: 18px;
    letter-spacing: 2px;
  }

  .swipe-hints {
    display: none;
  }

  .swipe-buttons {
    margin-top: 16px;
    gap: 16px;
  }

  .swipe-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .swipe-btn--send {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .swipe-card-stack {
    max-width: 380px;
    height: 500px;
  }

  .swipe-card-name {
    font-size: 26px;
  }

  .swipe-card-grade {
    font-size: 18px;
    padding: 10px 24px;
  }

  .swipe-indicator {
    font-size: 28px;
    padding: 18px 36px;
  }

  .swipe-btn {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .swipe-btn--send {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
}
