@import 'src/styles/variables';

.menu-card {
  background: $white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: $card-shadow;
  transition: $transition;
  position: relative;
  
  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    
    .menu-img {
      animation: pulse 1s ease-in-out;
    }
  }
}

.menu-img {
  width: 100%;
  height: 140px;
  position: relative;
}

.menu-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: $accent;
  color: $white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.menu-info {
  padding: 12px;
}

.menu-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  
  h3 {
    font-size: 16px;
  }
}

.menu-price {
  color: $primary;
  font-weight: 600;
}

.menu-desc {
  font-size: 12px;
  color: $gray;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.menu-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: $gray;
  margin-top: 8px;
  
  fa-icon {
    margin-right: 3px;
  }
}

.menu-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.story-btn {
  width: 100%;
  padding: 6px 0;
  border-radius: 20px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  transition: $transition;
  background: rgba(78, 205, 196, 0.1);
  color: $secondary;
  border: none;
  
  &:hover {
    background: rgba(78, 205, 196, 0.2);
  }
}

.add-btn {
  width: 32px;
  height: 32px;
  background: $primary;
  color: $white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: $transition;
  margin-left: 10px;
  cursor: pointer;
  
  &:hover {
    background: $primary-dark;
    transform: scale(1.1);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}