* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: linear-gradient(180deg, #FFF9F5 0%, #FFE8DE 100%);
  min-height: 100vh;
  overflow: hidden;
  touch-action: none;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  max-width: 420px;
  margin: 0 auto;
}

.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 20px;
  position: relative;
  min-height: 80px;
}

.feedback-message {
  font-size: 18px;
  font-weight: 600;
  color: #FF6B6B;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  top: 10px;
}

.feedback-message.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vibe-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
  margin-top: 40px;
}

.heart-icon {
  font-size: 20px;
}

.counter-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.card-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 420px;
  perspective: 1000px;
  margin: 20px 0;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.card.dragging {
  cursor: grabbing;
}

.current-card {
  z-index: 2;
  transition: box-shadow 0.2s;
}

.current-card:not(.dragging) {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.next-card {
  z-index: 1;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.card-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 24px;
  text-align: center;
}

.card-emoji {
  font-size: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  line-height: 1.2;
}

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 280px;
}

.keyword {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.progress-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 10px;
  border: 4px solid;
}

.swipe-indicator.like {
  right: 20px;
  color: #4ECB71;
  border-color: #4ECB71;
  background: rgba(78, 203, 113, 0.2);
}

.swipe-indicator.nope {
  left: 20px;
  color: #FF6B6B;
  border-color: #FF6B6B;
  background: rgba(255, 107, 107, 0.2);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-bottom: 20px;
}

.action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  transform: scale(1.1);
}

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

.nope-btn {
  background: white;
  color: #FF6B6B;
}

.like-btn {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  color: white;
}

.reveal-btn {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  transition: all 0.3s;
}

.reveal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

.reveal-btn:active {
  transform: translateY(0);
}

.footer {
  padding: 16px;
  text-align: center;
}

.footer a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #FF6B6B;
}

/* Collection View */
.collection-view {
  min-height: 100vh;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.back-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FF6B6B;
  background: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.back-btn:hover {
  transform: translateX(-4px);
}

.collection-title {
  font-size: 24px;
  font-weight: 800;
  color: #333;
}

.vibe-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: #999;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.collection-card {
  aspect-ratio: 1;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}

.collection-card:hover {
  transform: scale(1.03);
}

.collection-emoji {
  font-size: 40px;
}

.collection-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-align: center;
  padding: 0 10px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.empty-state {
  grid-column: span 2;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 360px) {
  .card-container {
    height: 380px;
  }
  
  .card-emoji {
    font-size: 60px;
  }
  
  .card-title {
    font-size: 22px;
  }
  
  .keyword {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}